https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92392
--- Comment #1 from tangyixuan <tangyixuan at mail dot dlut.edu.cn> ---
Hi, I replace the ‘int32_t’ with other identifier(here I replaced that with
abc):
1st case:
cat s.c
typedef int abc;
static abc * const f1(void);
gcc-trunk -c -Wignored-qualifiers s.c
s.c:2:8: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
2 | static abc * const f1(void);
| ^~~~~~~
When the redefinition of ‘int’ is not used here:
2nd cast:
cat s.c
static int * const f1(void);
gcc-trunk -c -Wignored-qualifiers s.c
s.c:1:20: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
1 | static int * const f1(void);
| ^~
So, there maybe a warning defect on which type qualifiers is invalid.