Maybe, the attached patch is a good intermediate solution? It suppresses only 
those warnings selectively that are caused by PyX abundantly and can safely be 
ignored.

I think the 'eflags' option is nice to have but does not really address the 
problem. It is like selling a dirty car and give the customer directions to the 
next car-wash... :-)





-------- Original-Nachricht --------
Datum: Thu, 21 Dec 2006 09:38:27 +0100
Von: Francesc Altet <[EMAIL PROTECTED]>
An: pytables-users@lists.sourceforge.net
Betreff: Re: [Pytables-users] Please suppress GCC warnings when compiling       
PyX-code

> A Dimarts 19 Desembre 2006 18:28, Francesc Altet escrigué:
> > Hi Norbert,
> >
> > A Dimarts 19 Desembre 2006 15:00, Norbert Nemec escrigué:
> > > Hi there,
> > >
> > > in the current version of pytables, gcc gets the option -Wall causing
> a
> > > ton of warnings when compiling PyX code. Since this is a problem of
> PyX
> > > and not of PyTables, I would suggest suppressing these warnings (see
> > > attached patch).
> >
> > Yes. I think this is a good idea (at least for end users), so I
> > checked it out for the forthcoming PyTables 1.4.
> >
> 
> Sorry, but I've changed my mind. In general, suppressing all the
> warnings is not a good thing. For instance, I remember that a Debian
> developer had a problem with the 64-bit port of PyTables and discover
> the flaw just by looking at the warnings in the build log.
> 
> What I've done is the addition of a 'eflags' parameter to setup.py.
> These flags will be passed directly to the compiler, so that users can
> reduce the level of warning, or change the default optimization level
> by issuing, for example:
> 
> python2.5 setup.py build_ext --inplace --eflags='-w -O3'
> 
> Cheers,
> 
> -- 
> >0,0<   Francesc Altet     http://www.carabos.com/
> V   V   Cárabos Coop. V.   Enjoy Data
>  "-"
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Attachment: no-warnings.diff
Description: application/php

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to