From: Adam Crume Date: Fri, 10 Oct 2014 21:08:32 +0000 (-0700) Subject: librados: Fix function prototypes in librados.h X-Git-Tag: v0.88~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d98b75530b0ea8f243a4dc8e1881bc6da2bca99d;p=ceph.git librados: Fix function prototypes in librados.h Fixes: 9716 Signed-off-by: Adam Crume --- diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index c4d4d6b10246..fc51e174d1ea 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -1879,7 +1879,7 @@ int rados_set_alloc_hint(rados_ioctx_t io, const char *o, * * @returns non-NULL on success, NULL on memory allocation error. */ -rados_write_op_t rados_create_write_op(); +rados_write_op_t rados_create_write_op(void); /** * Free a rados_write_op_t, must be called when you're done with it. @@ -2120,7 +2120,7 @@ int rados_aio_write_op_operate(rados_write_op_t write_op, * * @returns non-NULL on success, NULL on memory allocation error. */ -rados_read_op_t rados_create_read_op(); +rados_read_op_t rados_create_read_op(void); /** * Free a rados_read_op_t, must be called when you're done with it. diff --git a/src/test/Makefile.am b/src/test/Makefile.am index bb85b45cf055..b59a21f8c98e 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -928,6 +928,25 @@ bin_DEBUGPROGRAMS += ceph_test_cfuse_cache_invalidate ceph_test_c_headers_SOURCES = test/test_c_headers.c ceph_test_c_headers_LDADD = $(LIBRADOS) $(LIBCEPHFS) +ceph_test_c_headers_CFLAGS = $(AM_CFLAGS) \ + -Werror \ + -Wstrict-prototypes \ + -Wredundant-decls \ + -Wall \ + -Wundef \ + -Wwrite-strings \ + -Wmissing-prototypes \ + -Wendif-labels \ + -Wmissing-include-dirs \ + -Wempty-body \ + -Wnested-externs \ + -Wformat-security \ + -Wformat-y2k \ + -Winit-self \ + -Wignored-qualifiers \ + -Wold-style-declaration \ + -Wold-style-definition \ + -Wtype-limits bin_DEBUGPROGRAMS += ceph_test_c_headers ceph_test_get_blkdev_size_SOURCES = test/test_get_blkdev_size.cc