maybe-uninitialized.patch 675 B

1234567891011121314151617181920212223
  1. Description: Fix -Wmaybe-uninitialized compiler warning.
  2. In particular, the following warning:
  3. wmcliphist.c: In function 'main':
  4. wmcliphist.c:386:11: warning: 'icon_file' may be used uninitialized in this function
  5. [-Wmaybe-uninitialized]
  6. surface = cairo_image_surface_create_from_png(icon_file);
  7. ^
  8. Author: Doug Torrance <dtorrance@piedmont.edu>
  9. Last-Update: 2014-11-23
  10. --- a/wmcliphist.c
  11. +++ b/wmcliphist.c
  12. @@ -203,6 +203,9 @@
  13. /* creat dock icon */
  14. dock_app = foo_create_main_icon_window(main_window, icon_size);
  15. + /* set default icon */
  16. + icon_file = "ico_60x060_gray.png";
  17. +
  18. if (icon_size) {
  19. /* create icon_mask */
  20. if (icon_size == 60) {