Warning on dangerous use of assert() ?

hartmut.schirmer@arcor.de hartmut.schirmer@arcor.de
Wed Mar 17 12:35:00 GMT 2004


Hi,

does it make sense to add a warning to GCC to
avoid cases where the condition of an assert()
has side effect ?

I just found code like this

  assert(init_something());

failing in release mode ...

Thanks,
Hartmut








More information about the Gcc mailing list