On Apr 27 2022, Andrea Monaco via Gcc wrote: > This program > > #include <ctype.h> > > int main () > { > char *s; > isspace (s); > } > > compiles with no warning in gcc 8.3.0, even though there's a type > mistake; the correct call would be isspace (*s).
Try -Wsystem-headers. > The ctype functions are implemented as macros in glibc, so you can't > have type checking. But they are also provided as builtins by gcc, so I > wonder why type checking is not performed in that case, either. You need to suppress the macro to get the builtin. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."