Fix Solaris warnings mentioned by Micha on fltk.coredev Sep 16 '13

in thread entitled "Re: STR 2636, clipboard notification".



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2013-09-16 12:02:40 +00:00
parent 4e6779bc49
commit 578310dd0f

View File

@ -866,8 +866,8 @@ void Fl::copy(const char *stuff, int len, int clipboard) {
////////////////////////////////////////////////////////////////
// Code for tracking clipboard changes:
static Time primary_timestamp = -1;
static Time clipboard_timestamp = -1;
static Time primary_timestamp = (Time)-1;
static Time clipboard_timestamp = (Time)-1;
extern bool fl_clipboard_notify_empty(void);
extern void fl_trigger_clipboard_notify(int source);
@ -949,8 +949,8 @@ void fl_clipboard_notify_change() {
// Reset the timestamps if we've going idle so that you don't
// get a bogus immediate trigger next time they're activated.
if (fl_clipboard_notify_empty()) {
primary_timestamp = -1;
clipboard_timestamp = -1;
primary_timestamp = (Time)-1;
clipboard_timestamp = (Time)-1;
} else {
#if HAVE_XFIXES
if (!have_xfixes)