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

前端 未结 7 1785
萌比男神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条回答
  •  旧时难觅i
    2020-12-04 07:01

    It enables most warning messages.

    You can find out more if you use g++ --help=warnings.

提交回复
热议问题