Project

General

Profile

Actions

Bug #3111

closed

ftp warnings during compile

Added by Peter Manev over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

I get this warning on Buster, regular compile from source.


g -O2 -fdebug-prefix-map=/Suricata/suricata-2019081101=. -fstack-protector-strong -Wformat -Werror=format-security -I./../rust/gen/c-headers -c -o output-json-flow.o output-json-flow.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hs  -I/usr/lib/x86_64-linux-gnu/htp/include -I/usr/include/nspr -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss/ -I/usr/include/luajit-2.1 -fPIC  -Wextra -Werror-implicit-function-declaration  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char  -g -O2 -fdebug-prefix-map=/Suricata/suricata-2019081101=. -fstack-protector-strong -Wformat -Werror=format-security -I./../rust/gen/c-headers -c -o output-json-ftp.o output-json-ftp.c
output-json-ftp.c: In function ‘JsonFTPLogger’:
output-json-ftp.c:155:9: warning: ‘js_respcode_list’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         json_object_set_new(cjs, "completion_code", js_respcode_list);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output-json-ftp.c:99:13: note: ‘js_respcode_list’ was declared here
     json_t *js_respcode_list;
             ^~~~~~~~~~~~~~~~
output-json-ftp.c:154:9: warning: ‘js_resplist’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         json_object_set_new(cjs, "reply", js_resplist);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output-json-ftp.c:98:13: note: ‘js_resplist’ was declared here
     json_t *js_resplist;
             ^~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hs  -I/usr/lib/x86_64-linux-gnu/htp/include -I/usr/include/nspr -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss/ -I/usr/include/luajit-2.1 -fPIC  -Wextra -Werror-implicit-function-declaration  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings -Wbad-function-cast -Wformat-security -Wno-format-nonliteral -Wmissing-format-attribute -funsigned-char  -g -O2 -fdebug-prefix-map=/Suricata/suricata-2019081101=. -fstack-protector-strong -Wformat -Werror=format-security -I./../rust/gen/c-headers -c -o output-json-netflow.o output-json-netflow.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/hs  

Actions

Also available in: Atom PDF