What does “-Wall” in “g++ -Wall test.cpp -o test” do?

前端 未结 7 1777
萌比男神i
萌比男神i 2020-12-04 06:35

-o changes the output filename (I found that using --help)

But I can\'t find out what -Wall does?

相关标签:
7条回答
  • 2020-12-04 07:08

    It shows all warnings. I'd recommend also use -pedantic to warn about some non-conformant parts of code.

    0 讨论(0)
提交回复
热议问题