Whamcloud - gitweb
build: quiet LLVM non-literal string format warning
authorAndreas Dilger <adilger@dilger.ca>
Mon, 16 Dec 2013 03:11:40 +0000 (22:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Dec 2013 03:12:16 +0000 (22:12 -0500)
commit45ff69ffeb700012a7c052f5e45882557a40be7e
treeae908ef6f96b8085e084449f08f75ebe208a6641
parent3a941bef3b9036ca3db9d510c71bcae801ea4dd1
build: quiet LLVM non-literal string format warning

Compiling with LLVM generates a large number of warnings due
to the use of _() for wrapping strings for i18n:

    warning: format string is not a string literal
          (potentially insecure) [-Wformat-security]
    ./nls-enable.h:4:14: note: expanded from macro '_'
    #define _(a) (gettext (a))
                 ^~~~~~~~~~~~

These warnings are fixed by using "%s" as the format string,
and then _() is used as the string argument.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
17 files changed:
e2fsck/badblocks.c
e2fsck/journal.c
e2fsck/pass1b.c
e2fsck/unix.c
e2fsck/util.c
lib/blkid/getsize.c
misc/badblocks.c
misc/chattr.c
misc/dumpe2fs.c
misc/e2image.c
misc/e2undo.c
misc/mke2fs.c
misc/mklost+found.c
misc/tune2fs.c
misc/uuidd.c
resize/main.c
resize/resize2fs.c