Actions
Bug #3812
closedmingw: build warnings
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
I updated my win10 vm as well as the mingw to be up to date today (July 7 2020). Builds are now full of warnings similar to these:
In file included from suricata-common.h:495,
from app-layer-ftp.c:28:
app-layer-ftp.c: In function 'FTPParseMemcap':
app-layer-ftp.c:147:19: warning: unknown conversion type character 'l' in format [-Wformat=]
147 | SCLogInfo("FTP memcap: %"PRIu64, ftp_config_memcap);
| ^~~~~~~~~~~~~~~
util-debug.h:218:43: note: in definition of macro 'SCLogInfo'
218 | __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
| ^~~~~~~~~~~
app-layer-ftp.c:147:19: warning: too many arguments for format [-Wformat-extra-args]
147 | SCLogInfo("FTP memcap: %"PRIu64, ftp_config_memcap);
| ^~~~~~~~~~~~~~~
util-debug.h:218:43: note: in definition of macro 'SCLogInfo'
218 | __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
| ^~~~~~~~~~~
In file included from suricata-common.h:495,
from app-layer-htp-mem.c:32:
app-layer-htp-mem.c: In function 'HTPParseMemcap':
app-layer-htp-mem.c:63:19: warning: unknown conversion type character 'l' in format [-Wformat=]
63 | SCLogInfo("HTTP memcap: %"PRIu64, SC_ATOMIC_GET(htp_config_memcap));
| ^~~~~~~~~~~~~~~~
util-debug.h:218:43: note: in definition of macro 'SCLogInfo'
218 | __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
| ^~~~~~~~~~~
app-layer-htp-mem.c:63:19: warning: too many arguments for format [-Wformat-extra-args]
63 | SCLogInfo("HTTP memcap: %"PRIu64, SC_ATOMIC_GET(htp_config_memcap));
| ^~~~~~~~~~~~~~~~
util-debug.h:218:43: note: in definition of macro 'SCLogInfo'
218 | __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
| ^~~~~~~~~~~
Actions