]> git.ipfire.org Git - thirdparty/suricata.git/commit
src: fix strict-prototype warnings
authorVictor Julien <vjulien@oisf.net>
Mon, 16 Jan 2023 18:14:28 +0000 (19:14 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 17 Jan 2023 10:25:44 +0000 (11:25 +0100)
commitebd87282196e4757db44e9d40823477b34484238
tree5e041773950e155bfc5f479c5cd6521237140053
parent55c4834e4e9b14a441b735f84d8d35b4eb151702
src: fix strict-prototype warnings

Tested on Fedora 37 with clang 15.

app-layer.c:1055:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void AppLayerSetupCounters()
                          ^
                           void
app-layer.c:1176:29: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void AppLayerDeSetupCounters()
                            ^
                             void
2 errors generated.
34 files changed:
src/app-layer-htp-mem.c
src/app-layer.c
src/counters.c
src/defrag-queue.c
src/detect-engine-analyzer.c
src/detect-engine-loader.c
src/detect-engine-tag.c
src/detect-engine.c
src/flow-bypass.c
src/flow-manager.c
src/flow-queue.c
src/host-queue.c
src/ippair-queue.c
src/log-cf-common.c
src/runmode-af-packet.c
src/runmode-dpdk.c
src/runmode-netmap.c
src/source-af-packet.c
src/source-dpdk.c
src/source-nfq.c
src/source-pcap-file.c
src/source-windivert.c
src/stream-tcp-reassemble.c
src/tm-threads.c
src/util-action.c
src/util-affinity.c
src/util-conf.c
src/util-debug-filters.c
src/util-debug.c
src/util-device.c
src/util-hash-lookup3.c
src/util-log-redis.c
src/util-profiling-locks.c
src/win32-syscall.c