It’s short for “warn all” — it turns on (almost) all the warnings that g++ can tell you about. Typically a good idea, especially if you’re a beginner, because understanding and fixing those warnings can help you fix lots of different kinds of problems in your code.
Related Posts:
- What is the difference between g++ and gcc?
- C++ undefined reference to defined function
- Undefined reference to vtable
- make: g++: Command not found
- Undefined reference to vtable
- Compiling C++11 with g++
- “g++” is not recognized as an internal or external command, MinGW
- Eclipse C++ : “Program “g++” not found in PATH”
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- “g++” is not recognized as an internal or external command, MinGW
- Compiling a C++ program with gcc
- Undefined reference to class constructor, including .cpp file fixes
- gcc/g++: “No such file or directory”
- error: use of deleted function
- Undefined reference to constructor
- expected unqualified-id before string constant
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- extra qualification error in C++
- C++ Error ‘nullptr was not declared in this scope’ in Eclipse IDE
- Error: free(): invalid next size (fast):
- Error: free(): invalid next size (fast):
- I get this error: “glibc detected”
- Update GCC on OSX
- G++ undefined reference to class::function
- Undefined reference to class constructor, including .cpp file fixes
- Difference between
and - Getting a bunch of crosses initialization error
- Expected unqualified-id before ‘[‘ token
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- Compiling C++11 with g++
- What is a .h.gch file?
- Update g++ but still old version
- Link error “undefined reference to `__gxx_personality_v0′” and g++ [duplicate]
- How many spaces for tab character(\t)?
- How do I build a graphical user interface in C++? [closed]
- rand() between 0 and 1
- how to implement Interfaces in C++?
- What exactly is nullptr?
- How to make a SIMPLE C++ Makefile
- finding dll for “The specified module could not be found”
- no matching function for call to ‘ ‘
- Read file line by line using ifstream in C++
- Convert an int to ASCII character
- When should I write the keyword ‘inline’ for a function/method?
- “items list” or “item list”
- When and why do I need to use cin.ignore() in C++?
- What does int & mean
- Evaluate a string with a switch in C++ [duplicate]
- “&” meaning after variable type
- How can I create objects while adding them into a vector?
- What is the printf format specifier for bool?
- libpng warning: iCCP: known incorrect sRGB profile
- In CLion, header only library: file “does not belong to any project target, code insight features might not work properly”
- Is a function definition not allowed here before a ‘{‘ token?
- What does LPCWSTR stand for and how should it be handled with?
- A warning – comparison between signed and unsigned integer expressions
- How can I convert const char* to string and then back to char*?
- How do I call the class’s destructor?
- Can’t resolve Error: indirection requires pointer operand (‘int’ invalid)
- Defining a struct in flex error C++
- C++ Postfix calculator using stacks
- Socket API or library for C++?
- Initialize empty vector in structure – c++
- C++ catching all exceptions
- error: new types may not be defined in a return type
- error: passing ‘const …’ as ‘this’ argument of ‘…’ discards qualifiers
- Printing an array in C++?
- Resolve build errors due to circular dependency amongst classes
- error: “initializer expression list treated as compound expression”
- The compiler is complaining about my default parameters?
- RPN Calculator for C++
- How can I get the list of files in a directory using C or C++?
- How do you make a HTTP request with C++?
- Error: C2228: left of ” must have class/struct/union
- error C2679: binary ‘<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
- Multi-character constant warnings
- Error: vector does not name a type
- How to convert QString to int?
- Which is faster C++ String length() or size()?
- creating an array of structs in c++
- How to read lines of text from file and put them into an array
- Why can’t we pass arrays to function by value?
- Iterator Loop vs index loop
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) simple code
- How to draw line in OpenGL?
- c++ sizeof( string )
- How can I add reflection to a C++ application?
- operator << must take exactly one argument
- Is there a C++ equivalent to getcwd?
- Negative RGB Values
- DEV C ++ Error: expected declaration before ‘}’ token
- “cannot be used as a function error”
- error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
- Displaying contents of a vector container in C++
- Converting string to unsigned int returns the wrong result
- Visual c++ can’t open include file ‘iostream’
- c++ vector bubble sort
- compare and swap vs test and set
- Weighted random numbers
- compare and swap vs test and set