wireshark/epan/ftypes
João Valverde 94fe2b195c Try to fix some warnings.
[1638/2312] Building C object epan/ftypes/CMakeFiles/ftypes.dir/ftype-protocol.c.o
FAILED: epan/ftypes/CMakeFiles/ftypes.dir/ftype-protocol.c.o
/usr/bin/ccache /usr/bin/cc -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL -I. -I../ -I../include -Iepan/ftypes -I../epan/ftypes -I../epan -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -fvisibility=hidden  -fexcess-precision=fast -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wredundant-decls -Wno-error=maybe-uninitialized -Wno-format-truncation -Wframe-larger-than=32768 -fdiagnostics-color=always -Wunused-const-variable -Wshadow -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -Wno-pointer-sign  -fmacro-prefix-map=/builds/wireshark/wireshark/= -fmacro-prefix-map=/builds/wireshark/wireshark/build/= -fmacro-prefix-map=../= -O2 -g -DNDEBUG -fPIC   -std=gnu11 -Werror -MD -MT epan/ftypes/CMakeFiles/ftypes.dir/ftype-protocol.c.o -MF epan/ftypes/CMakeFiles/ftypes.dir/ftype-protocol.c.o.d -o epan/ftypes/CMakeFiles/ftypes.dir/ftype-protocol.c.o   -c ../epan/ftypes/ftype-protocol.c
../epan/ftypes/ftype-protocol.c: In function ‘_tvbcmp’:
../epan/ftypes/ftype-protocol.c:248:62: error: operand of ?: changes signedness from ‘int’ to ‘guint’ {aka ‘unsigned int’} due to unsignedness of other operand [-Werror=sign-compare]
  248 |  guint a_len = a->length < 0 ? tvb_captured_length(a->tvb) : a->length;
      |                                                              ^~~~~~~~~
../epan/ftypes/ftype-protocol.c:249:62: error: operand of ?: changes signedness from ‘int’ to ‘guint’ {aka ‘unsigned int’} due to unsignedness of other operand [-Werror=sign-compare]
  249 |  guint b_len = b->length < 0 ? tvb_captured_length(b->tvb) : b->length;
      |                                                              ^~~~~~~~~
../epan/ftypes/ftype-protocol.c: In function ‘slice’:
../epan/ftypes/ftype-protocol.c:224:60: error: argument ‘length’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
  224 | slice(fvalue_t *fv, GByteArray *bytes, guint offset, guint length)
      |                                                      ~~~~~~^~~~~~
cc1: all warnings being treated as errors
2022-05-23 23:04:07 +01:00
..
.editorconfig Fix EditorConfig settings 2022-02-23 23:37:47 +00:00
CMakeLists.txt Move regex code to wsutil 2021-11-14 21:00:59 +00:00
ftype-bytes.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-double.c dfilter: Add float multiplication/division 2022-04-18 17:09:05 +01:00
ftype-guid.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-ieee-11073-float.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-integer.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-ipv4.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-ipv6.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-none.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-protocol.c Try to fix some warnings. 2022-05-23 23:04:07 +01:00
ftype-string.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftype-time.c dfilter: Add abs() function 2022-04-18 17:09:00 +01:00
ftypes-int.h dfilter: Fix protocol slices with negative indexes 2022-05-23 23:04:07 +01:00
ftypes.c dfilter: Fix protocol slices with negative indexes 2022-05-23 23:04:07 +01:00
ftypes.h dfilter: Fix protocol slices with negative indexes 2022-05-23 23:04:07 +01:00