diff options
author | Thomas Huth <thuth@redhat.com> | 2017-07-06 15:35:09 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-07-07 16:40:58 +1000 |
commit | 64215f41aafd182e51947dc5d544e5ebaab744ca (patch) | |
tree | 1b8fc321454148f5c4daa69e0c5af895c5401fe2 /make.rules | |
parent | 14df554937c80997c610c6aef9fb89f3449f5ff4 (diff) | |
download | SLOF-64215f41aafd182e51947dc5d544e5ebaab744ca.zip SLOF-64215f41aafd182e51947dc5d544e5ebaab744ca.tar.gz SLOF-64215f41aafd182e51947dc5d544e5ebaab744ca.tar.bz2 |
libnet: Make the code compilable with -Wformat-security
When compiling the libnet code with the -Wformat-security compiler
flag, there is a warning in tftp.c that printf is used without
format argument. It's not a real problem here, but let's make
the code ready for this compiler flag anyway and add a proper
format string here, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'make.rules')
-rw-r--r-- | make.rules | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ AR ?= $(CROSS)ar RANLIB ?= $(CROSS)ranlib CPP ?= $(CROSS)cpp -WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes +WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wformat-security CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float -fno-strict-aliasing \ -mno-altivec -mabi=no-altivec -fno-stack-protector $(WARNFLAGS) |