cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: gcc warnings in non-debug builds

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Oct 2008 13:22:09 +0200 (CEST)

On Fri, 3 Oct 2008, Yang Tse wrote:

> --disable-optimize option given to configure. Strip optimizer flags from
> CFLAGS and CPPFLAGS and let configure introduce '-O0' into CFLAGS.

Stripping flags could be harmless on more compilers, but -O0 seems very gcc
specific.

> --enable-optimize option given to configure with no arguments. Strip
> optimizer flags from CFLAGS and CPPFLAGS and let configure introduce '-O2'
> into CFLAGS.

Again gcc specific. If gcc wasn't detected, I guess this should simply output
a message about it not being able to enable optimization. Unless we get code
to detect and work with other compilers too.

-- 
  / daniel.haxx.se
Received on 2008-10-04