Make one gcc warning an error?

前端 未结 5 1684
爱一瞬间的悲伤
爱一瞬间的悲伤 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:23

    You can use the -Werror compiler flag to turn all or some warnings into errors.

提交回复
热议问题