]> code.ossystems Code Review - openembedded-core.git/commit
glib-2.0: Ignore useless warning found with gcc-6
authorKhem Raj <raj.khem@gmail.com>
Wed, 11 May 2016 17:35:06 +0000 (10:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 May 2016 12:40:50 +0000 (13:40 +0100)
commit3fdecff96dd7516605ec9248b2a39de4db81306f
tree529617db84ba682d73a61049bbc2abc215087a58
parent93226e8c74be438781df79f0be5cbf563c79df8b
glib-2.0: Ignore useless warning found with gcc-6

../../glib-2.46.2/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~

| ../../../../../../../../workspace/sources/glib-2.0/glib/tests/gdatetime.c: In function 'test_strftime':
| ../../../../../../../../workspace/sources/glib-2.0/glib/tests/gdatetime.c:1338:3: error: '%c' yields only last 2 digits of year in some locales [-Werror=format-y2k]
|    "a%a A%A b%b B%B c%c C%C d%d e%e F%F g%g G%G h%h H%H I%I j%j m%m M%M " \

Additionally fix the problem seen where write() return code is ignored

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glib-2.0/glib-2.0/0001-Do-not-ignore-return-value-of-write.patch [new file with mode: 0644]
meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch [new file with mode: 0644]
meta/recipes-core/glib-2.0/glib-2.0/ignore-format-nonliteral-warning.patch [new file with mode: 0644]
meta/recipes-core/glib-2.0/glib-2.0_2.46.2.bb