Re: [ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Helmut Schaa
Ben Pfaff schrieb: >On Fri, Dec 13, 2013 at 10:30:56AM -0800, Ben Pfaff wrote: >> On Fri, Dec 13, 2013 at 06:54:27PM +0100, Helmut Schaa wrote: >> > Reduces binary size. Use a static inline function instead of >> > a macro to not get "unused variable" warnings everywhere. >> > >> > Making ovs

Re: [ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 10:30:56AM -0800, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 06:54:27PM +0100, Helmut Schaa wrote: > > Reduces binary size. Use a static inline function instead of > > a macro to not get "unused variable" warnings everywhere. > > > > Making ovs_assert an empty inline in the

Re: [ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 06:54:27PM +0100, Helmut Schaa wrote: > Reduces binary size. Use a static inline function instead of > a macro to not get "unused variable" warnings everywhere. > > Making ovs_assert an empty inline in the header file effectively > optimizes out all calls to ovs_assert. >

[ovs-dev] [PATCHv2] lib/util.h: Disable ovs_assert when build with NDEBUG

2013-12-13 Thread Helmut Schaa
Reduces binary size. Use a static inline function instead of a macro to not get "unused variable" warnings everywhere. Making ovs_assert an empty inline in the header file effectively optimizes out all calls to ovs_assert. Signed-off-by: Helmut Schaa --- lib/util.h | 7 ++- 1 file changed,