Author
anonymous
about 7 years ago
$
prog.cc:11:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] ((B*)&d)->foo(); ^~~~~~~~~~~~~ 1 warning generated.