https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #13 from Lukas Wyporek ---
OK, so we can compile with -Wformat=2 (which can be used instead of group
"-Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k"):
gcc main.c -o main.exe -Wall -Wextra -Wformat=2
and the compiler wi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #11 from Lukas Wyporek ---
When "%hhu" format is literal, and -Wall parameter is used there are correct
warnings - for example:
main.c:11:23: warning: unknown conversion type character 'h' in format
[-Wformat
=]
sscanf(buffer, "
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #9 from Lukas Wyporek ---
No, my mistake. -Wall shows warnings only if format parameter is LITERAL.
When format parameter is pointer to string (buffer) - there are no warnings.
Best regards,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #8 from Lukas Wyporek ---
With -Wall -Wextra instead of just -Wextra the behaviour is the same - integer
overflows.
Best regards,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #6 from Lukas Wyporek ---
MinGW support told me that they can do nothing because MSVCRT is closed source
library. And they told me to do direct request to GNU GCC maintainers with ask
to provide warnings in compiler when somebody is u
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #5 from Lukas Wyporek ---
Thank you for your time.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #3 from Lukas Wyporek ---
>> Cygwin uses newlib and not MSVCRT.
So why this bug is present also on Cygwin GCC?
Newlib is also buggy?
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: wyporek at poczta dot onet.pl
Target Milestone: ---
Created attachment 40884
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40884&acti