This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [c++] warn if NULL is passed through varargs


On Oct  9, 2002, Tom Tromey <tromey@redhat.com> wrote:

> It would be nice to be able to warn about this on architectures where
> sizeof(int) != sizeof(void*).  Likewise it would be nice to get
> warnings about a missing trailing `NULL' for functions like execl,
> just like we get warnings about printf format/argument mismatches.

An attribute to decorate such functions has been proposed more than
once before.  I'm not sure it ever got implemented.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]