[Pkg-wmaker-commits] [wmload] 40/58: debian/patches/fix_unused_result.patch: Fix -Wunused-result compiler warning.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmload.
commit cb47d92c11ed470c5d034c529625b971285e1de9
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Apr 7 21:51:47 2015 -0500
debian/patches/fix_unused_result.patch: Fix -Wunused-result compiler warning.
---
debian/patches/fix_unused_result.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/fix_unused_result.patch b/debian/patches/fix_unused_result.patch
new file mode 100644
index 0000000..3debd7c
--- /dev/null
+++ b/debian/patches/fix_unused_result.patch
@@ -0,0 +1,27 @@
+Description: Fix -Wunused-result compiler warning.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-04-07
+
+--- a/wmload.c
++++ b/wmload.c
+@@ -125,7 +125,9 @@
+ ruid = getuid();
+ euid = geteuid();
+ if ( ruid == euid ) {
+- system( Execute );
++ if (system( Execute ) == -1)
++ fprintf(stderr, "system(%s) returned an error",
++ Execute);
+ return;
+ }
+ pid = fork();
+@@ -151,7 +153,8 @@
+ strerror(errno));
+ exit(127);
+ }
+- system( Execute );
++ if (system( Execute ) == -1)
++ fprintf(stderr, "system(%s) returned an error", Execute);
+ exit(0);
+ }
+ int main(int argc,char *argv[])
diff --git a/debian/patches/series b/debian/patches/series
index ed4d66b..74c17d0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
bump_POSIX_C_SOURCE.patch
+fix_unused_result.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmload.git
More information about the Pkg-wmaker-commits
mailing list