On 23 Mai, 14:29, "Dr. David Kirkby" <david.kir...@onetel.net> wrote:
> On 05/23/10 01:27 PM, Dr. David Kirkby wrote:
>
> > *Both* -ansi and -pedantic should be used for the best conformance to
> > standards, though it will not be perfect. But I doubt the Sage library
> > would build with those. If Cython could generate code that works with
> > those options, there is some hope the library would build with Sun Studio.
>
> Sorry, it is -ansi and -pedantic-errors which would be needed.

For C, "-ansi" is equivalent to "-std=c89"... (that's perhaps not what
we want)

The more evil thing is that currently *all* warnings in the
compilation of C/C++ Sage library files are suppressed by a *trailing*
"-w", so nobody will see any warning unless he/she edits setup.py
(even if CFLAGS are set to report them).
(And they're compiled with "-O3", which implies "-fstrict-
aliasing"...)

The use of gcc's "-W..." / "-Wno-..." options in combination with "-
Werror[=...]" or "-Wno-error=..." wouldn't be bad, too (if it was
enabled on a compiler-sensitive basis).

-Leif

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to