I get this warning from GCC:
warning: cannot pass objects of non-POD type \'class Something\' through \'...\'; call will abort at runtime
You can use -fdiagnostics-show-option to see the -W option that applies to a particular warning.
Unfortunately, in this case there is no specific option that covers that warning.
It appears that there will be better support for this in gcc-4.5.