Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$ prog.cc: In function 'int main()':
prog.cc:14:7: warning: statement has no effect [-Wunused-value]
a == 1;
~~^~~~
prog.cc:17:7: warning: ignoring return value of 'bool Test::operator==(int) const', declared with attribute nodiscard [-Wunused-result]
b == 1;
~~^~~~
prog.cc:6:24: note: declared here
[[nodiscard]] bool operator==(int _value) const { return value == _value; };
^~~~~~~~
Exit Code:
0