]> git.ipfire.org Git - thirdparty/curl.git/commit
build: fix `-Wtrampolines` picky warning for gcc 4.x versions
authorViktor Szakats <commit@vsz.me>
Fri, 10 Jan 2025 10:03:16 +0000 (11:03 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 10 Jan 2025 17:21:10 +0000 (18:21 +0100)
commit95658f9ca325b4fa4e77fb0f59ebb24da4e30cdc
treeda1ba7b164fdd032e44d60c44bfd24589e12b88d
parentfdc588dc10c6fc7e9a7adc03eee4cec69909defe
build: fix `-Wtrampolines` picky warning for gcc 4.x versions

Caused an error when using cmake with gcc 4.4 and 4.5.
Also 4.3 when using autotools.

Seen with GNU 4.4.0 in CeGCC 0.59.1:
```
cc1: error: unrecognized command line option "-Wtrampolines"
```

`-Wtrampolines` requires gcc 4.6 or upper.

Ref: https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Warning-Options.html
Ref: https://master.dl.sourceforge.net/project/cegcc/cegcc/0.59.1/cegcc_mingw32ce_snowleopard_r1397.tar.bz2

Closes #15962
CMake/PickyWarnings.cmake
m4/curl-compilers.m4