Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#425 closed enhancement (invalid)

Squash warning cause by using "-Wstrict-prototypes" in cython

Reported by: mabshoff Owned by: was
Priority: trivial Milestone: sage-duplicate/invalid/wontfix
Component: packages: standard Keywords:
Cc: robertwb Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

When compiling C code in cython some times "-Wstrict-prototypes" is added, causing the following warning:

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++

Change History (5)

comment:1 Changed 12 years ago by malb

IIRC this gcc option is added by python-cflags:

SAGE_ROOT/local/bin/python2.5-config --cflags
-I/home/malb/SAGE/local/include/python2.5 \ 
-I/home/malb/SAGE/local/include/python2.5 \
-fno-strict-aliasing -DNDEBUG -g -O3 -Wall \
-Wstrict-prototypes

comment:2 Changed 12 years ago by mabshoff

  • Milestone set to sage-feature

comment:3 Changed 11 years ago by mabshoff

  • Cc robertwb added

I agree with malb here that it is Python which is at fault here. Since this is only a minor annoyance I think we should just invalidate it.

Thoughts?

Cheers,

Michael

comment:4 Changed 11 years ago by malb

  • Milestone changed from sage-feature to sage-duplicate/invalid
  • Resolution set to invalid
  • Status changed from new to closed

I'm all for invalidating.

comment:5 Changed 11 years ago by mabshoff

Agreed. This is a distutils problem anyway.

Cheers,

Michael

Note: See TracTickets for help on using tickets.