]> git.ipfire.org Git - people/ms/suricata.git/commit - src/app-layer-htp.c
compiler: more strict compiler warnings
authorVictor Julien <victor@inliniac.net>
Tue, 2 May 2017 07:11:16 +0000 (09:11 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 2 May 2017 09:27:34 +0000 (11:27 +0200)
commitab1200fbd7fd4d3e0fe097fab3b3bcfefaba7e2e
tree452fef41725a3e709b7f1ade7357f4ca0c939dbc
parent342059835fe7ec0079ac91a152a0abab516b184f
compiler: more strict compiler warnings

Set flags by default:

    -Wmissing-prototypes
    -Wmissing-declarations
    -Wstrict-prototypes
    -Wwrite-strings
    -Wcast-align
    -Wbad-function-cast
    -Wformat-security
    -Wno-format-nonliteral
    -Wmissing-format-attribute
    -funsigned-char

Fix minor compiler warnings for these new flags on gcc and clang.
422 files changed:
src/Makefile.am
src/alert-debuglog.c
src/alert-fastlog.c
src/alert-prelude.c
src/alert-syslog.c
src/alert-unified2-alert.c
src/app-layer-dcerpc-common.h
src/app-layer-dcerpc-udp.c
src/app-layer-dcerpc.c
src/app-layer-detect-proto.c
src/app-layer-detect-proto.h
src/app-layer-dnp3.c
src/app-layer-dns-tcp.c
src/app-layer-dns-udp.c
src/app-layer-enip-common.c
src/app-layer-enip.c
src/app-layer-ftp.c
src/app-layer-htp-body.c
src/app-layer-htp-file.c
src/app-layer-htp-libhtp.c
src/app-layer-htp-libhtp.h
src/app-layer-htp-mem.c
src/app-layer-htp-mem.h
src/app-layer-htp-xff.h
src/app-layer-htp.c
src/app-layer-htp.h
src/app-layer-modbus.c
src/app-layer-smb.c
src/app-layer-smb2.c
src/app-layer-smtp.c
src/app-layer-ssh.c
src/app-layer-ssl.c
src/app-layer-template.c
src/app-layer.c
src/app-layer.h
src/conf-yaml-loader.c
src/conf.c
src/conf.h
src/counters.c
src/counters.h
src/decode-ethernet.h
src/decode-events.h
src/decode-icmpv4.c
src/decode-icmpv6.c
src/decode-ipv4.c
src/decode-teredo.c
src/decode.c
src/decode.h
src/defrag-hash.c
src/defrag-queue.h
src/defrag-timeout.c
src/defrag.c
src/detect-ack.c
src/detect-app-layer-event.c
src/detect-app-layer-protocol.c
src/detect-asn1.c
src/detect-base64-data.c
src/detect-base64-decode.c
src/detect-bypass.c
src/detect-byte-extract.c
src/detect-bytejump.c
src/detect-bytetest.c
src/detect-cipservice.c
src/detect-classtype.c
src/detect-content.c
src/detect-content.h
src/detect-csum.c
src/detect-dce-iface.c
src/detect-dce-opnum.c
src/detect-dce-stub-data.c
src/detect-depth.c
src/detect-detection-filter.c
src/detect-distance.c
src/detect-dnp3.c
src/detect-dnp3.h
src/detect-dns-query.c
src/detect-dsize.c
src/detect-engine-address-ipv4.c
src/detect-engine-address-ipv6.c
src/detect-engine-address-ipv6.h
src/detect-engine-address.c
src/detect-engine-address.h
src/detect-engine-analyzer.c
src/detect-engine-analyzer.h
src/detect-engine-dcepayload.c
src/detect-engine-dns.c
src/detect-engine-enip.c
src/detect-engine-event.c
src/detect-engine-file.c
src/detect-engine-filedata-smtp.c
src/detect-engine-hcbd.c
src/detect-engine-hsbd.c
src/detect-engine-iponly.c
src/detect-engine-loader.c
src/detect-engine-loader.h
src/detect-engine-mpm.c
src/detect-engine-mpm.h
src/detect-engine-payload.c
src/detect-engine-port.c
src/detect-engine-port.h
src/detect-engine-prefilter.c
src/detect-engine-profile.c
src/detect-engine-proto.c
src/detect-engine-proto.h
src/detect-engine-siggroup.c
src/detect-engine-sigorder.c
src/detect-engine-tag.c
src/detect-engine-template.c
src/detect-engine-threshold.c
src/detect-engine-tls.c
src/detect-engine-uri.c
src/detect-engine.c
src/detect-fast-pattern.c
src/detect-file-data.c
src/detect-file-hash-common.c
src/detect-file-hash-common.h
src/detect-fileext.c
src/detect-filemagic.c
src/detect-filemd5.c
src/detect-filename.c
src/detect-filesha1.c
src/detect-filesha256.c
src/detect-filesize.c
src/detect-filestore.c
src/detect-flags.c
src/detect-flow.c
src/detect-flowbits.c
src/detect-flowint.c
src/detect-flowvar.c
src/detect-fragbits.c
src/detect-fragoffset.c
src/detect-ftpbounce.c
src/detect-geoip.c
src/detect-gid.c
src/detect-hostbits.c
src/detect-http-accept-enc.c
src/detect-http-accept-lang.c
src/detect-http-accept.c
src/detect-http-client-body.c
src/detect-http-connection.c
src/detect-http-content-len.c
src/detect-http-content-type.c
src/detect-http-cookie.c
src/detect-http-header-names.c
src/detect-http-header.c
src/detect-http-headers-stub.h
src/detect-http-headers.c
src/detect-http-hh.c
src/detect-http-hrh.c
src/detect-http-method.c
src/detect-http-protocol.c
src/detect-http-raw-header.c
src/detect-http-raw-uri.c
src/detect-http-referer.c
src/detect-http-request-line.c
src/detect-http-response-line.c
src/detect-http-server-body.c
src/detect-http-start.c
src/detect-http-stat-code.c
src/detect-http-stat-msg.c
src/detect-http-ua.c
src/detect-http-uri.c
src/detect-http-uri.h
src/detect-icmp-id.c
src/detect-icmp-seq.c
src/detect-icode.c
src/detect-id.c
src/detect-ipopts.c
src/detect-ipproto.c
src/detect-iprep.c
src/detect-isdataat.c
src/detect-itype.c
src/detect-l3proto.c
src/detect-lua-extensions.c
src/detect-lua.c
src/detect-mark.c
src/detect-metadata.c
src/detect-modbus.c
src/detect-msg.c
src/detect-noalert.c
src/detect-nocase.c
src/detect-offset.c
src/detect-parse.c
src/detect-parse.h
src/detect-pcre.c
src/detect-pkt-data.c
src/detect-pktvar.c
src/detect-prefilter.c
src/detect-priority.c
src/detect-rawbytes.c
src/detect-reference.c
src/detect-replace.c
src/detect-rev.c
src/detect-rpc.c
src/detect-sameip.c
src/detect-seq.c
src/detect-sid.c
src/detect-ssh-proto-version.c
src/detect-ssh-proto.c
src/detect-ssh-software-version.c
src/detect-ssh-software.c
src/detect-ssl-state.c
src/detect-ssl-version.c
src/detect-stream_size.c
src/detect-tag.c
src/detect-template-buffer.c
src/detect-template.c
src/detect-threshold.c
src/detect-tls-cert-issuer.c
src/detect-tls-cert-serial.c
src/detect-tls-cert-subject.c
src/detect-tls-cert-validity.c
src/detect-tls-sni.c
src/detect-tls-version.c
src/detect-tls.c
src/detect-tos.c
src/detect-ttl.c
src/detect-uricontent.c
src/detect-urilen.c
src/detect-window.c
src/detect-within.c
src/detect-xbits.c
src/detect.c
src/detect.h
src/flow-manager.c
src/flow-queue.h
src/flow-storage.c
src/flow-timeout.c
src/flow-worker.c
src/flow.c
src/host-bit.c
src/host-queue.h
src/host-timeout.c
src/host.c
src/host.h
src/ippair-bit.c
src/ippair-queue.h
src/ippair-timeout.c
src/ippair.c
src/log-cf-common.c
src/log-dnslog.c
src/log-droplog.c
src/log-file.c
src/log-filestore.c
src/log-httplog.c
src/log-pcap.c
src/log-stats.c
src/log-tcp-data.c
src/log-tlslog.c
src/log-tlsstore.c
src/output-file.c
src/output-filedata.c
src/output-flow.c
src/output-json-alert.c
src/output-json-dnp3-objects.c
src/output-json-dnp3.c
src/output-json-dns.c
src/output-json-drop.c
src/output-json-email-common.c
src/output-json-file.c
src/output-json-flow.c
src/output-json-http.c
src/output-json-http.h
src/output-json-netflow.c
src/output-json-smtp.c
src/output-json-ssh.c
src/output-json-stats.c
src/output-json-template.c
src/output-json-tls.c
src/output-json-vars.c
src/output-json.c
src/output-lua.c
src/output-packet.c
src/output-stats.c
src/output-streaming.c
src/output-tx.c
src/output.c
src/output.h
src/packet-queue.c
src/reputation.c
src/reputation.h
src/runmode-af-packet.c
src/runmode-af-packet.h
src/runmode-erf-file.c
src/runmode-netmap.c
src/runmode-netmap.h
src/runmode-nflog.c
src/runmode-pcap-file.c
src/runmode-pcap.c
src/runmode-pfring.c
src/runmode-unittests.c
src/runmode-unittests.h
src/runmode-unix-socket.c
src/runmodes.c
src/source-af-packet.c
src/source-af-packet.h
src/source-erf-dag.c
src/source-erf-file.c
src/source-ipfw.c
src/source-napatech.c
src/source-netmap.c
src/source-netmap.h
src/source-nflog.c
src/source-nfq.c
src/source-pcap-file.c
src/source-pcap-file.h
src/source-pcap.c
src/source-pcap.h
src/source-pfring.c
src/stream-tcp-list.c
src/stream-tcp-reassemble.c
src/stream-tcp-sack.c
src/stream-tcp-util.c
src/stream-tcp.c
src/stream-tcp.h
src/suricata-common.h
src/suricata.c
src/suricata.h
src/threads.c
src/threadvars.h
src/tm-modules.h
src/tm-queuehandlers.c
src/tm-queuehandlers.h
src/tm-queues.c
src/tm-queues.h
src/tm-threads.c
src/tm-threads.h
src/tmqh-flow.c
src/tmqh-nfq.c
src/tmqh-simple.c
src/unix-manager.c
src/util-action.c
src/util-action.h
src/util-affinity.c
src/util-affinity.h
src/util-bloomfilter-counting.c
src/util-bloomfilter-counting.h
src/util-bloomfilter.c
src/util-bloomfilter.h
src/util-byte.c
src/util-cidr.c
src/util-classification-config.c
src/util-conf.c
src/util-conf.h
src/util-coredump-config.c
src/util-cpu.c
src/util-cpu.h
src/util-daemon.c
src/util-debug-filters.c
src/util-debug.c
src/util-debug.h
src/util-decode-asn1.c
src/util-decode-asn1.h
src/util-decode-mime.c
src/util-enum.h
src/util-file.c
src/util-file.h
src/util-fix_checksum.c
src/util-hash-lookup3.c
src/util-hash.c
src/util-hashlist.c
src/util-host-info.c
src/util-host-os-info.c
src/util-host-os-info.h
src/util-hyperscan.c
src/util-ioctl.c
src/util-ioctl.h
src/util-ip.c
src/util-log-redis.c
src/util-log-redis.h
src/util-logopenfile.c
src/util-lua-common.c
src/util-lua-dnp3-objects.c
src/util-lua-dnp3.c
src/util-lua-dns.c
src/util-lua-http.c
src/util-lua-smtp.c
src/util-lua-ssh.c
src/util-lua-tls.c
src/util-magic.c
src/util-memcmp.c
src/util-memrchr.c
src/util-misc.c
src/util-mpm-ac-bs.c
src/util-mpm-ac-tile.c
src/util-mpm-ac.c
src/util-pages.c
src/util-pages.h
src/util-pool-thread.c
src/util-pool-thread.h
src/util-pool.c
src/util-pool.h
src/util-privs.c
src/util-privs.h
src/util-profiling-keywords.c
src/util-profiling-locks.h
src/util-profiling-rulegroups.c
src/util-profiling-rules.c
src/util-profiling.c
src/util-radix-tree.c
src/util-random.c
src/util-reference-config.c
src/util-rule-vars.c
src/util-rule-vars.h
src/util-running-modes.c
src/util-running-modes.h
src/util-signal.c
src/util-signal.h
src/util-spm.c
src/util-storage.c
src/util-streaming-buffer.c
src/util-strlcatu.c
src/util-strlcpyu.c
src/util-syslog.c
src/util-threshold-config.c
src/util-threshold-config.h
src/util-time.c
src/util-time.h
src/util-unittest-helper.c
src/util-unittest-helper.h
src/util-unittest.c
src/util-unittest.h