]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libglib2: disable compiler warnings
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Jul 2017 14:47:41 +0000 (16:47 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 19 Jul 2017 21:58:05 +0000 (23:58 +0200)
By default, libglib enables some fairly aggressive warnings, treated
as errors. In particular, the -Wformat=2 warning triggers a warning
due to the return value of the ngettext() macro from uClibc libintl
stub not being understood as being potentially a format string.

So, before we enable the stub libintl in uClibc, we disable such
warnings. A bug will be reported to upstream uClibc to get the actual
bug fixed, but disabling compiler warnings treated as errors is anyway
a good thing in the context of Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit f2800ac57cde2cd71df295d33441faae1b30dd3e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libglib2/libglib2.mk

index ddd1f396525067f8c35469d7ff1e25934515f942..e23c4a2df8cd57e69c4f95f22f73ae6ae809fa66 100644 (file)
@@ -113,7 +113,8 @@ HOST_LIBGLIB2_DEPENDENCIES = \
        host-zlib
 
 LIBGLIB2_CONF_OPTS = \
-       --with-pcre=system
+       --with-pcre=system \
+       --disable-compile-warnings
 
 ifneq ($(BR2_ENABLE_LOCALE),y)
 LIBGLIB2_DEPENDENCIES += libiconv