Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:19:18: warning: ignoring returned value of type 'S', declared with attribute nodiscard [-Wunused-result]
return_copy(s); // warning
^
prog.cc:12:3: note: in call to 'T return_copy(const T&) [with T = S]', declared here
T return_copy(const T& _in){
^~~~~~~~~~~
prog.cc:4:22: note: 'S' declared here
struct [[nodiscard]] S{ int i;};
^
Exit Code:
0