On Mar 22, 2008, at 6:33, "Alexandre Fiori" <[EMAIL PROTECTED]> wrote:


Hmm. I see.
I wish I could remove that.

You can: recompile python without this flag.

Andi..



On Sat, Mar 22, 2008 at 5:16 AM, Andi Vajda <[EMAIL PROTECTED]> wrote:

On Mar 22, 2008, at 0:40, "Alexandre Fiori" <[EMAIL PROTECTED]> wrote:

>
> While compiling jcc and pylucene 2.3.1 on ubuntu gutsy 7.10 (gcc
> 4.1.3 20070929) it drops the following:
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
> for Ada/C/ObjC but not for C++
>
> Although there's no side effect on the generated code, I suggest
> removing that from mainstream just to avoid such ugly warnings.

This flag comes from python itself. Distutils, or Setuptools when
installed, invokes the C++ compiler with the C compiler flags that
Python itself was built with. This is where most of the C extension
build magic is coming from.
When using C++, there are some issues like the one you reported. C is
compatible with C++, but that doesn't imply the compilers are.

Andi..


>
>
> --
> Ship ahoy! Hast seen the While Whale?
> - Melville's Captain Ahab
> _______________________________________________
> pylucene-dev mailing list
> [email protected]
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev



--
Ship ahoy! Hast seen the While Whale?
- Melville's Captain Ahab
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to