diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-23 03:43:41 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-25 07:30:24 +0700 |
commit | 7e7e89bd9c807fb700ff0c6fe06d186e8f796f36 (patch) | |
tree | cde41d106897af2e6d9be833b3fae4d15a37b5be /desktop/wmcliphist/maybe-uninitialized.patch | |
parent | 7e596d2e743e93e73007a1d651a3af10de86540c (diff) |
desktop/wmcliphist: Updated for version 2.1, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'desktop/wmcliphist/maybe-uninitialized.patch')
-rw-r--r-- | desktop/wmcliphist/maybe-uninitialized.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/desktop/wmcliphist/maybe-uninitialized.patch b/desktop/wmcliphist/maybe-uninitialized.patch new file mode 100644 index 0000000000..735e31418e --- /dev/null +++ b/desktop/wmcliphist/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@piedmont.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) { |