diff mbox

[U-Boot,2/3] Fix a few gcc warnings.

Message ID BANLkTik2sboDOKU3gDToR-Mh2y0KkU7-Xg@mail.gmail.com
State RFC
Headers show

Commit Message

Mike Frysinger April 25, 2011, 5:40 a.m. UTC
On Mon, Apr 25, 2011 at 12:13 AM, Mike Frysinger wrote:
> however, that doesnt change my original point ... we shouldnt be
> "fixing" things like this that have no relevance in the u-boot world.
> disable the warning flags in the build system.

see if this fixes your printf warnings:
-mike

Comments

Joakim Tjernlund April 25, 2011, 8:30 a.m. UTC | #1
vapierfilter@gmail.com wrote on 2011/04/25 07:40:00:
>
> On Mon, Apr 25, 2011 at 12:13 AM, Mike Frysinger wrote:
> > however, that doesnt change my original point ... we shouldnt be
> > "fixing" things like this that have no relevance in the u-boot world.
> > disable the warning flags in the build system.
>
> see if this fixes your printf warnings:
> --- a/config.mk
> +++ b/config.mk
> @@ -191,6 +191,8 @@ CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
>  endif
>
>  CFLAGS += $(call cc-option,-fno-stack-protector)
> +CFLAGS += $(call cc-option,-Wno-format-nonliteral)
> +CFLAGS += $(call cc-option,-Wno-format-security)

Yes, that removed the warning.

 Jocke
diff mbox

Patch

--- a/config.mk
+++ b/config.mk
@@ -191,6 +191,8 @@  CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
 endif

 CFLAGS += $(call cc-option,-fno-stack-protector)
+CFLAGS += $(call cc-option,-Wno-format-nonliteral)
+CFLAGS += $(call cc-option,-Wno-format-security)

 # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
 # option to the assembler.