diff options
author | Daniel Mack <daniel@zonque.org> | 2015-02-24 09:32:38 +0100 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-24 09:10:46 +0000 |
commit | b125feae219aaa7afcd10a96a50863cdd83f5bd2 (patch) | |
tree | 5dfff71c11712c23e8764626d7e7ef1448e56b25 /epan/tvbparse.c | |
parent | 4ee6bcbd2e03a25f1e6b0239558d9edeaf8040c0 (diff) |
epan: fix build error with gcc5
gcc5 bails out with the below error.
CC libwireshark_la-tvbparse.lo
CC libwireshark_la-tvbuff_base64.lo
tvbparse.c: In function 'cond_not_char':
tvbparse.c:254:18: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
if (! offset < tt->end_offset ) {
^
cc1: all warnings being treated as errors
Makefile:1843: recipe for target 'libwireshark_la-tvbparse.lo' failed
Change-Id: I4e8654e97079da6b39be580fc766eecefb4c7ea6
Reviewed-on: https://code.wireshark.org/review/7339
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/tvbparse.c')
-rw-r--r-- | epan/tvbparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbparse.c b/epan/tvbparse.c index 9b6053be5e..884fb08114 100644 --- a/epan/tvbparse.c +++ b/epan/tvbparse.c @@ -251,7 +251,7 @@ static int cond_not_char(tvbparse_t* tt, const int offset, const tvbparse_wanted if (TVBPARSE_DEBUG & TVBPARSE_DEBUG_NOT_CHAR) g_warning("cond_not_char: control='%s'",wanted->control.str); #endif - if (! offset < tt->end_offset ) { + if ( offset >= tt->end_offset ) { return -1; } |