Fix gcc 'ordered comparison of pointer' warnings
This commit is contained in:
parent
e4d2e31b82
commit
da8160ac98
@ -970,7 +970,7 @@ static GPid build_run_cmd(GeanyDocument *doc, guint cmdindex)
|
||||
run_info[cmdindex].pid = (GPid) 0;
|
||||
}
|
||||
|
||||
if (run_info[cmdindex].pid > 0)
|
||||
if (run_info[cmdindex].pid != 0)
|
||||
{
|
||||
g_child_watch_add(run_info[cmdindex].pid, (GChildWatchFunc) run_exit_cb,
|
||||
(gpointer)&(run_info[cmdindex]));
|
||||
|
@ -359,7 +359,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
|
||||
gchar *sel;
|
||||
gint len, remaining, wrote;
|
||||
|
||||
if (pid > 0)
|
||||
if (pid != 0)
|
||||
g_child_watch_add(pid, (GChildWatchFunc) cc_exit_cb, doc);
|
||||
|
||||
/* use GIOChannel to monitor stdout */
|
||||
|
Loading…
x
Reference in New Issue
Block a user