[Pkg-wmaker-commits] [wmget] 24/41: debian/patches/fix_-Wpointer-to-int-cast.patch: Fix compiler warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sun Aug 23 17:06:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmget.
commit d83c04eae3faab0a71ee606db33653369b6f916c
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Fri Jan 30 00:12:35 2015 -0600
debian/patches/fix_-Wpointer-to-int-cast.patch: Fix compiler warnings.
---
debian/patches/fix_-Wpointer-to-int-cast.patch | 34 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 35 insertions(+)
diff --git a/debian/patches/fix_-Wpointer-to-int-cast.patch b/debian/patches/fix_-Wpointer-to-int-cast.patch
new file mode 100644
index 0000000..491a0d1
--- /dev/null
+++ b/debian/patches/fix_-Wpointer-to-int-cast.patch
@@ -0,0 +1,34 @@
+Description: Fix -Wpointer-to-int-cast compiler warnings.
+ In particular, use intptr_t instead of int.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-01-30
+
+--- a/server.c
++++ b/server.c
+@@ -949,7 +949,7 @@
+ static dockapp_rv_t on_click_pbar (
+ void *cbdata, int x_unused, int y_unused)
+ {
+- int which = (int)cbdata;
++ int which = (intptr_t)cbdata;
+ (void)x_unused;
+ (void)y_unused;
+
+@@ -969,7 +969,7 @@
+ static dockapp_rv_t on_click_stop (
+ void *cbdata, int x_unused, int y_unused)
+ {
+- int which = (int)cbdata;
++ int which = (intptr_t)cbdata;
+ (void)x_unused;
+ (void)y_unused;
+
+@@ -1047,7 +1047,7 @@
+ */
+ int server (int argc, char **argv)
+ {
+- int i;
++ intptr_t i;
+
+ config_server (argc, argv, &config);
+
diff --git a/debian/patches/series b/debian/patches/series
index c3de10c..c70c1f7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01_Makefile.patch
+fix_-Wpointer-to-int-cast.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmget.git
More information about the Pkg-wmaker-commits
mailing list