Re: [AD] al_assert

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


OK, raising this thread from the dead, but, can I add the noreturn
attribute to al_assert and make sure it doesn't actually return? It
cuts out all the null pointer dereference errors from the clang static
analysis that Evert and I have been running.

Pete

On Fri, Apr 17, 2009 at 10:16 AM, Milan Mimica <milan.mimica@xxxxxxxxxx> wrote:
> 2009/4/17 Peter Wang <novalazy@xxxxxxxxxx>:
>>
>> Milan, do you remember why you put #ifndef ALLEGRO_MSVC around the
>> fprintf?  The log message says nothing (r10806).
>
> Because it crashes if there is no console (WIN32 APP).
>
>
>
> --
> Milan Mimica
> http://sparklet.sf.net
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/