generic-poky/meta/recipes-sato/puzzles
Hongxu Jia ffb4933475 puzzles: fix do_compile failed when DEBUG_BUILD
There were compiling failure with option -g -O
...
././gtk.c: In function 'configure_area':
././gtk.c:397:2: error: 'cr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  cairo_set_source_rgb(cr,
  ^
././gtk.c:384:14: note: 'cr' was declared here
     cairo_t *cr;
              ^
././gtk.c: In function 'main':
././gtk.c:2911:6: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      fprintf(stderr, "%s: %s\n", pname, error);
      ^
cc1: all warnings being treated as errors
...

Initialized the pointers 'cr' and 'error' with NULL

[YOCTO #6410]

(From OE-Core rev: 2281180499cf3bec5c7e75cb596725dab190f72c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:02:00 +01:00
..
files puzzles: fix do_compile failed when DEBUG_BUILD 2014-08-23 23:02:00 +01:00
oh-puzzles_git.bb Replace one-line DESCRIPTION with SUMMARY 2014-01-02 12:50:18 +00:00
puzzles_r10116.bb puzzles: fix do_compile failed when DEBUG_BUILD 2014-08-23 23:02:00 +01:00