]> granicus.if.org Git - curl/commit
Enable more GCC warnings
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 7 Jul 2018 07:00:29 +0000 (09:00 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Tue, 21 Aug 2018 16:53:46 +0000 (18:53 +0200)
commit014ed7c22f51463dfbf4566d9d2d7fe959a392ad
tree26aeca65934f5bcdd487eaa7e764911fb795b2a6
parent15ed9f87e3a1f91bd7b4a5291edf268b843e5987
Enable more GCC warnings

This enables the following additional warnings:
-Wold-style-definition
-Warray-bounds=2 instead of the default 1
-Wformat=2, but only for GCC 4.8+ as Wno-format-nonliteral is not
 respected for older versions
-Wunused-const-variable, which enables level 2 instead of the default 1
-Warray-bounds also in debug mode through -ftree-vrp
-Wnull-dereference also in debug mode through
 -fdelete-null-pointer-checks

Closes https://github.com/curl/curl/pull/2747
m4/curl-compilers.m4