On Sun, Feb 16, 2014 at 07:45:07PM +0000, Michael Haberler wrote: ... > + // sigset of all the signals that we're interested in > + assert(sigemptyset(&sigset) == 0); > + assert(sigaddset(&sigset, SIGINT) == 0); > + assert(sigaddset(&sigset, SIGKILL) == 0); > + assert(sigaddset(&sigset, SIGTERM) == 0); > + assert(sigaddset(&sigset, SIGSEGV) == 0); > + assert(sigaddset(&sigset, SIGFPE) == 0); > +
the body of assert() should never have a side effect. If the code is ever built with -DNDEBUG, the result will be wrong since the expression will never be evaluated. Jeff ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
