[Bug c/99972] missing -Wunused-result on a call to a locally redeclared warn_unused_result function

2021-04-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99972 Martin Sebor changed: What|Removed |Added Target Milestone|--- |11.0 Resolution|---

[Bug c/99972] missing -Wunused-result on a call to a locally redeclared warn_unused_result function

2021-04-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99972 --- Comment #4 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:da879e01ecd35737c18be1da3324f4560aba1961 commit r11-8205-gda879e01ecd35737c18be1da3324f4560aba1961 Author: Martin Sebor Date: Thu

[Bug c/99972] missing -Wunused-result on a call to a locally redeclared warn_unused_result function

2021-04-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99972 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug c/99972] missing -Wunused-result on a call to a locally redeclared warn_unused_result function

2021-04-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99972 --- Comment #2 from Martin Sebor --- The code (obviously) needs to be compiled as C to show the C bug (the C++ front end is also buggy but differently; pr99974 tracks that): $ gcc -S -Wall pr99972.c pr99972.c: In function ‘gwur’:

[Bug c/99972] missing -Wunused-result on a call to a locally redeclared warn_unused_result function

2021-04-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99972 Martin Sebor changed: What|Removed |Added Known to fail||10.2.0, 11.0, 4.7.0, 4.8.4,