Explorar el Código

flatiron: enable compile with --enable-fatal-warnings

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse hace 14 años
padre
commit
14bacb4eb6
Se han modificado 3 ficheros con 2 adiciones y 3 borrados
  1. 0 1
      exec/totemudpu.c
  2. 2 1
      test/testcpg.c
  3. 0 1
      tools/corosync-objctl.c

+ 0 - 1
exec/totemudpu.c

@@ -1299,7 +1299,6 @@ static int totemudpu_build_sockets_ip (
 	int res;
 	unsigned int recvbuf_size;
 	unsigned int optlen = sizeof (recvbuf_size);
-	int flag;
 
 	/*
 	 * Setup unicast socket

+ 2 - 1
test/testcpg.c

@@ -34,6 +34,7 @@
 
 #include <config.h>
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
@@ -140,7 +141,7 @@ static void TotemConfchgCallback (
 {
 	int i;
 
-	printf("\nTotemConfchgCallback: ringid (%u.%llu)\n", ring_id.nodeid, ring_id.seq);
+	printf("\nTotemConfchgCallback: ringid (%u.%"PRIu64")\n", ring_id.nodeid, ring_id.seq);
 
 	printf("active processors %lu: ",
 	       (unsigned long int) member_list_entries);

+ 0 - 1
tools/corosync-objctl.c

@@ -93,7 +93,6 @@ static void tail_object_deleted(confdb_handle_t handle,
 
 static void create_object(confdb_handle_t handle, char * name_pt);
 static void create_object_key(confdb_handle_t handle, char * name_pt);
-static void destroy_object_key(confdb_handle_t handle, char * name_pt);
 static void write_key(confdb_handle_t handle, char * path_pt);
 static void get_parent_name(const char * name_pt, char * parent_name);