gui: linux: fix a 'mixed declarations and code' compiler warning
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 7 Nov 2012 13:51:49 +0000 (14:51 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 7 Nov 2012 15:27:41 +0000 (16:27 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
gui/linux-gtk/Makefile
gui/linux-gtk/src/ipc.c

index 8a3cbad..7138b0f 100644 (file)
@@ -3,7 +3,7 @@ include $(TOPDIR)/Makefile.inc
 
 # hardening flags: -fPIE -Wl,-z,now -pie
 CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -fPIE -Wno-strict-prototypes \
-          -Wno-unused-parameter -Wno-cast-qual -Wno-declaration-after-statement
+          -Wno-unused-parameter -Wno-cast-qual
 CPPFLAGS += $(shell pkg-config --cflags gtk+-2.0)
 LDFLAGS = -pie
 #LDFLAGS +=    -Wl,--warn-common
index 70d58ae..ef75dc9 100644 (file)
@@ -557,11 +557,11 @@ process_mid(int size, olsr_u8_t vtime, union olsr_ip_addr *originator, union mid
 int
 process_hna(int size, olsr_u8_t vtime, union olsr_ip_addr *originator, union hna_message *m)
 {
-
-  printf("Processing HNA size = %d\n", size);
   struct hnapair *hnapairs;
   struct hnapair6 *hnapairs6;
 
+  printf("Processing HNA size = %d\n", size);
+
   /* Calculate size of the hnainfo */
   size = size - 4 - 4 - ipsize;