]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile: disable format-security warning
authorSage Weil <sage.weil@dreamhost.com>
Sun, 22 Apr 2012 03:28:45 +0000 (20:28 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 22 Apr 2012 03:28:45 +0000 (20:28 -0700)
The prt() varargs function generates this warning

test/rbd/fsx.c: In function ‘prt’:
warning: test/rbd/fsx.c:203:2: format not a string literal and no format arguments [-Wformat-security]
warning: test/rbd/fsx.c:205:3: format not a string literal and no format arguments [-Wformat-security]

Disable that check for the fsx build only.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/Makefile.am

index 63633761d5b773bf137643635c416aca7c0e0e53..60f959f6f2e33f20cf37fefbf5fbcdd03041c949 100644 (file)
@@ -680,7 +680,7 @@ bin_DEBUGPROGRAMS += test_librbd
 
 test_librbd_fsx_SOURCES = test/rbd/fsx.c
 test_librbd_fsx_LDADD =  librbd.la librados.la
-test_librbd_fsx_CFLAGS = ${AM_CFLAGS}
+test_librbd_fsx_CFLAGS = ${AM_CFLAGS} -Wno-format
 bin_DEBUGPROGRAMS += test_librbd_fsx
 
 test_rados_api_io_SOURCES = test/rados-api/io.cc test/rados-api/test.cc