#19899: Use -Wno-unused to compile Python + Python packages
----------------------------------+----------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-7.0
Component: packages: standard | Keywords:
Merged in: | Authors: Jeroen Demeyer
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------------+----------------------------------
Currently, the Sage is compiled with `-w` which suppresses all warnings. I
don't think that is a good idea because there might be useful warnings.
One kind of warning which appears a lot is unused functions or variables
because of the way that Cython generates code. Such warnings also appear
in external Cython packages which use Sage. Therefore, we simply compile
Python with `-Wno-unused` which is then passes down to all Python
packages.
I noticed something else strange: Python puts `CFLAGS` ''before'' its own
flags like `-O3`. But there is also a variable `EXTRA_CFLAGS` which is put
after Python's flags. Since we usually want user flags to override the
package flags, we put the user's `CFLAGS` into `EXTRA_CFLAGS`.
--
Ticket URL: <http://trac.sagemath.org/ticket/19899>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.