Kaydet (Commit) da8160ac authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix gcc 'ordered comparison of pointer' warnings

üst e4d2e31b
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment