Actions
Bug #3867
closedwindows: compile warnings
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
A recent mingw update triggered lots of warnings:
In file included from alert-debuglog.c:45: alert-debuglog.c: In function 'AlertDebugLogger': alert-debuglog.c:169:43: warning: unknown conversion type character 'l' in format [-Wformat=] 169 | MemBufferWriteString(aft->buffer, "PCAP PKT NUM: %"PRIu64"\n", p->pcap_cnt); | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:169:43: warning: too many arguments for format [-Wformat-extra-args] 169 | MemBufferWriteString(aft->buffer, "PCAP PKT NUM: %"PRIu64"\n", p->pcap_cnt); | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:209:43: warning: unknown conversion type character 'l' in format [-Wformat=] 209 | MemBufferWriteString(aft->buffer, "FLOW PKTS TODST: %"PRIu32"\n" | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:209:43: warning: too many arguments for format [-Wformat-extra-args] 209 | MemBufferWriteString(aft->buffer, "FLOW PKTS TODST: %"PRIu32"\n" | ^~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:269:21: warning: unknown conversion type character 'l' in format [-Wformat=] 269 | "ALERT IN TX [%02d]: %"PRIu64"\n", i, pa->tx_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~ alert-debuglog.c:269:21: warning: too many arguments for format [-Wformat-extra-args] 269 | "ALERT IN TX [%02d]: %"PRIu64"\n", i, pa->tx_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util-buffer.h:165:27: note: in definition of macro 'MemBufferWriteString' 165 | __VA_ARGS__); \ | ^~~~~~~~~~~
Compiler is Gcc 10.1.0.
Files
Actions