Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Don't Use Boost
C++11
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic-errors Exit Code:
0
Author
anonymous
almost 6 years ago
C++
gcc 9.2.0
Author
anonymous
almost 6 years ago
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic-errors prog.cc:6:17: warning: 'nodiscard' attribute applied to 'CSingleLock::CSingleLock(std::mutex*, bool)' with void return type [-Wattributes]
6 | [[nodiscard]] CSingleLock (std::mutex*, bool) { }
| ^~~~~~~~~~~