添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
/tmp/cc6NCfHE.o: In function `main': tmpnam.cc:(.text+0x18): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
Can anyone help me to understand the reason of this warning?

Thanks,
Hasmik.
Thanks for advice.
I have read it, and now i want to know is there a way to disable this warning?

Regards,
Hasmik. Last edited on g++ tmpnam.cc 2>&1 | grep -v "'tmpnam' is dangerous" :)
otherwise, there may be a compiler directive (e.g. #pragma) somewhere...
Pretty sure I did this for some other annoying warning in g++. Last edited on