[geany/geany] da8160: Fix gcc 'ordered comparison of pointer' warnings
Nick Treleaven
git-noreply at xxxxx
Thu Jul 26 00:02:37 UTC 2012
Branch: refs/heads/document-messages
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Fri, 30 Dec 2011 16:13:40
Commit: da8160ac98dadf5c38396dce3ca127f84e48c682
https://github.com/geany/geany/commit/da8160ac98dadf5c38396dce3ca127f84e48c682
Log Message:
-----------
Fix gcc 'ordered comparison of pointer' warnings
Modified Paths:
--------------
src/build.c
src/tools.c
Modified: src/build.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -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]));
Modified: src/tools.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -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 */
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list