Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180710 (experimental)

Options
Warnings
Boost 1.67.0
C++17
no pedantic

Author

anonymous

almost 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=c++17
prog.cc: In function 'int main()':
prog.cc:21:35: warning: ignoring return value of 'static ScopedLock ScopedLock::construct(int, int)', declared with attribute nodiscard [-Wunused-result]
     ScopedLock::construct(12, 123); // Warning
                                   ^
prog.cc:13:5: note: declared here
     construct(int x, int y)
     ^~~~~~~~~
constructed
Exit Code:
0