[Pkg-wmaker-commits] [wmcliphist] 46/49: debian/patches: (deprecated-declarations.patch, maybe-uninitialized.patch) Fix compiler warnings.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 18 01:51:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcliphist.

commit eb475131d30b948c78cdd77c67a3f44786e85512
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Nov 23 08:47:12 2014 -0600

    debian/patches: (deprecated-declarations.patch, maybe-uninitialized.patch) Fix
    compiler warnings.
---
 debian/patches/deprecated-declarations.patch | 24 ++++++++++++++++++++++++
 debian/patches/maybe-uninitialized.patch     | 22 ++++++++++++++++++++++
 debian/patches/series                        |  2 ++
 3 files changed, 48 insertions(+)

diff --git a/debian/patches/deprecated-declarations.patch b/debian/patches/deprecated-declarations.patch
new file mode 100644
index 0000000..05f2cf4
--- /dev/null
+++ b/debian/patches/deprecated-declarations.patch
@@ -0,0 +1,24 @@
+Description: Fix -Wdeprecated-declarations compiler warning.
+ In particular, the following warning:
+ gui.c: In function 'show_message':
+ gui.c:444:2: warning: 'gtk_misc_set_padding' is deprecated
+ (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkmisc.h:80) [-Wdeprecated-declarations]
+   gtk_misc_set_padding(&GTK_LABEL(label)->misc, 10, 10);
+   ^
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-11-23
+
+--- a/gui.c
++++ b/gui.c
+@@ -441,7 +441,10 @@
+ 	}
+ 
+ 	/* add the label, and show everything we've added to the dialog. */
+-	gtk_misc_set_padding(&GTK_LABEL(label)->misc, 10, 10);
++	gtk_widget_set_margin_start(label, 10);
++	gtk_widget_set_margin_end(label, 10);
++	gtk_widget_set_margin_top(label, 10);
++	gtk_widget_set_margin_bottom(label, 10);
+ 	gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), label);
+ 	gtk_widget_show_all(dialog);
+ 
diff --git a/debian/patches/maybe-uninitialized.patch b/debian/patches/maybe-uninitialized.patch
new file mode 100644
index 0000000..ba9539f
--- /dev/null
+++ b/debian/patches/maybe-uninitialized.patch
@@ -0,0 +1,22 @@
+Description: Fix -Wmaybe-uninitialized compiler warning.
+ In particular, the following warning:
+ wmcliphist.c: In function 'main':
+ wmcliphist.c:386:11: warning: 'icon_file' may be used uninitialized in this function
+ [-Wmaybe-uninitialized]
+    surface = cairo_image_surface_create_from_png(icon_file);
+            ^
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-11-23
+
+--- a/wmcliphist.c
++++ b/wmcliphist.c
+@@ -203,6 +203,9 @@
+ 	/* creat dock icon */
+ 	dock_app = foo_create_main_icon_window(main_window, icon_size);
+ 
++	/* set default icon */
++	icon_file = "ico_60x060_gray.png";
++
+ 	if (icon_size) {
+ 		/* create icon_mask */
+ 		if (icon_size == 60) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c3ebc09
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+maybe-uninitialized.patch
+deprecated-declarations.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcliphist.git



More information about the Pkg-wmaker-commits mailing list