[Pkg-wmaker-commits] [wmload] 38/58: debian/patches/bump_POSIX_C_SOURCE.patch: Avoid implicit declaration warning.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:26 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 c81ad4335fb4d27a545006bc43bf4c3145de8373
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Tue Apr 7 19:23:06 2015 -0500

    debian/patches/bump_POSIX_C_SOURCE.patch: Avoid implicit declaration warning.
---
 debian/patches/bump_POSIX_C_SOURCE.patch | 17 +++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/bump_POSIX_C_SOURCE.patch b/debian/patches/bump_POSIX_C_SOURCE.patch
new file mode 100644
index 0000000..fcd500b
--- /dev/null
+++ b/debian/patches/bump_POSIX_C_SOURCE.patch
@@ -0,0 +1,17 @@
+Description: Bump _POSIX_C_SOURCE to 200112L.
+ Otherwise, we get the following warning during build.
+ wmload.c: In function ‘GetLoad’:
+ wmload.c:523:10: warning: incompatible implicit declaration of built-in function ‘rint’
+    *usr = rint(Maximum * (float)(*usr)   /total);
+           ^
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-04-07
+
+--- a/wmload.c
++++ b/wmload.c
+@@ -1,4 +1,4 @@
+-#define _POSIX_C_SOURCE 199309L
++#define _POSIX_C_SOURCE 200112L
+ 
+ #include <stdio.h>
+ #include <string.h>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ed4d66b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+bump_POSIX_C_SOURCE.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