cURL / Mailing Lists / curl-library / Single Mail

curl-library

-Wfloat-equal and -Wunreachable-code used in ares

From: Tor Arntsen <tor_at_spacetec.no>
Date: Fri, 13 Feb 2004 20:01:34 +0100

When compiling ares with gcc 2.95.2:
cc1: Invalid option `-Wfloat-equal'
cc1: Invalid option `-Wunreachable-code'

<http://curl.haxx.se/auto/log.cgi?id=20040213194648-11954>

These warnings seems to be undocumented features of gcc 2.96, and documented
features of gcc 3.x. As 2.96 was an unofficial snapshot+Redhat hack, those
warning flags should probably only be added to CFLAGS for gcc3 and onwards,
if possible.

-Tor
Received on 2004-02-13