http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56989
Bug #: 56989 Summary: wrong location in error message Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: tro...@gcc.gnu.org Consider this program: extern void voidf(void); extern int intf(void); int check(void) { if (voidf() < 0 || intf() < 0) return -1; return 0; } I compiled it with a recent git gcc and got: barimba. gcc --syntax-only qq.c qq.c: In function ‘check’: qq.c:7:7: error: void value not ignored as it ought to be || intf() < 0) ^ I think the error message would be more helpful if it pointed to the call to voidf.