Fix signedness warning in gio/win32/gwin32fsmonitorutils.c

gio/win32/gwin32fsmonitorutils.c: In function 'g_win32_fs_monitor_handle_event':
gio/win32/gwin32fsmonitorutils.c:107:11: warning: comparison of integer expressions of different signedness: 'GFileMonitorEvent' {aka 'enum <anonymous>'} and 'int'
   if (fme != -1)
           ^~
This commit is contained in:
Emmanuel Fleury 2021-05-14 13:58:11 +02:00
parent 059dc76ae1
commit a16d6398d7

View File

@ -92,7 +92,7 @@ g_win32_fs_monitor_handle_event (GWin32FSMonitorPrivate *monitor,
monitor->pfni_prev->Action == FILE_ACTION_RENAMED_OLD_NAME) monitor->pfni_prev->Action == FILE_ACTION_RENAMED_OLD_NAME)
{ {
/* don't bother sending events, was already sent (rename) */ /* don't bother sending events, was already sent (rename) */
fme = -1; fme = (GFileMonitorEvent) -1;
} }
else else
fme = G_FILE_MONITOR_EVENT_MOVED_IN; fme = G_FILE_MONITOR_EVENT_MOVED_IN;
@ -104,7 +104,7 @@ g_win32_fs_monitor_handle_event (GWin32FSMonitorPrivate *monitor,
break; break;
} }
if (fme != -1) if (fme != (GFileMonitorEvent) -1)
return g_file_monitor_source_handle_event (monitor->fms, return g_file_monitor_source_handle_event (monitor->fms,
fme, fme,
filename, filename,