Created
April 23, 2020 19:00
-
-
Save domiyanyue/bc1ccd1c0fd58b64b5d05eeb99ef355b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpp_tutorial# g++ warning_example.cpp -Wuninitialized -o a -Werror | |
warning_example.cpp: In function ‘int main()’: | |
warning_example.cpp:4:19: error: ‘array[1]’ is used uninitialized in this function [-Werror=uninitialized] | |
return array[1]; | |
^ | |
cc1plus: all warnings being treated as errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment