]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: Fix function prototypes in librados.h 2701/head
authorAdam Crume <adamcrume@gmail.com>
Fri, 10 Oct 2014 21:08:32 +0000 (14:08 -0700)
committerAdam Crume <adamcrume@gmail.com>
Fri, 10 Oct 2014 21:08:32 +0000 (14:08 -0700)
Fixes: 9716
Signed-off-by: Adam Crume <adamcrume@gmail.com>
src/include/rados/librados.h
src/test/Makefile.am

index c4d4d6b102465d6ca643d94aa49de6537da18e79..fc51e174d1eabe9f6f529996abaaf253cd0ee9e2 100644 (file)
@@ -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.
index bb85b45cf055d30dbab932099fe6fdd49264beee..b59a21f8c98e45f0e7577b6a1a28f7ed60c9271f 100644 (file)
@@ -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