Make one gcc warning an error?

前端 未结 5 1688
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-14 15:37

I get this warning from GCC:

warning: cannot pass objects of non-POD type \'class Something\' through \'...\'; call will abort at runtime

5条回答
  •  遥遥无期
    2020-12-14 16:30

    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.

提交回复
热议问题