[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sharutils] Compilation with -Werror=format-security fails
From: |
Petr Pisar |
Subject: |
[sharutils] Compilation with -Werror=format-security fails |
Date: |
Wed, 4 Dec 2013 14:52:30 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello,
Fedora tries to compile all packages with GCC -Werror=format-security option,
and sharutils fails with:
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I../libopts
-I. -I.. -I../lib -I../lib -I../intl -Wno-format-contains-nul -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-Werror=format-security -Wno-format-contains-nul -c -o shar.o shar.c
shar.c: In function ‘print_header_stamp’:
shar.c:929:7: error: format not a string literal and no format arguments
[-Werror=format-security]
error (0, errno, _("Cannot get current directory name"));
This is caused by aoGetsText() in src/shar-opts.h not being marked with
__attribute__ ((format_arg(1))).
-- Petr
pgpxhSFyxFVuz.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sharutils] Compilation with -Werror=format-security fails,
Petr Pisar <=