Skip to content

Commit 54da347

Browse files
GabrielGannefklassen
authored andcommitted
fix some small gcc 7 warnings (appneta#403)
* fix -Wbool-operation warnings found by gcc-7 Signed-off-by: Gabriel Ganne <[email protected]> * fix -Wmemset-elt-size warning found by gcc-7 Signed-off-by: Gabriel Ganne <[email protected]> * fix -Wuninitialized warning found by gcc-7 Signed-off-by: Gabriel Ganne <[email protected]>
1 parent 01da5af commit 54da347

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@
612612
<sysmacros.h>. */
613613
#undef MAJOR_IN_SYSMACROS
614614

615+
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
616+
#undef NO_MINUS_C_MINUS_O
617+
615618
/* Define this if optional arguments are disallowed */
616619
#undef NO_OPTIONAL_OPT_ARGS
617620

src/tcpliveplay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ do_checksum_liveplay(u_int8_t *data, int proto, int len) {
11861186
ipv4_hdr *ipv4;
11871187
tcp_hdr *tcp;
11881188
int ip_hl;
1189-
volatile int sum; // <-- volatile works around a PPC g++ bug
1189+
volatile int sum = 0; // <-- volatile works around a PPC g++ bug
11901190

11911191
sum;
11921192
ipv4 = NULL;

0 commit comments

Comments
 (0)