[Bug c/80801] Error "void value not ignored as it ought to be" is a bit cryptic
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 17 10:03:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80801
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oh, in fact you're calling the C++ compiler, but reported it for Component=c
The wording is the same but location info is slightly different between the
two:
v.c: In function ‘main’:
v.c:7:10: error: void value not ignored as it ought to be
return func();
^~~~~~
tmp$ g++ v.c
v.c: In function ‘int main()’:
v.c:7:15: error: void value not ignored as it ought to be
return func();
^
More information about the Gcc-bugs
mailing list