I get this warning from GCC:
warning: cannot pass objects of non-POD type 'class Something' through '...'; call will abort at runtime
It's pretty deadly, especially since it calls an abort. Why isn't this an error? I would like to make it an error, but:
- How do I make a specific warning an error?
- Which warning is it? According to http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html,
-Wno-invalid-offsetof
looks like the flag to hide it, but it doesn't