Since I'm unable to create an account to report a bug and got no reply
from gcc-bugzilla-account-requ...@gcc.gnu.org I'll dump this here.
Depending on the placement of a label Gcc gives a false positive warning
about misleading indentation. Below is a minimal working example to
reproduce and the o
On Tue, Mar 16, 2021 at 11:26:29AM +0100, Jakub Jelinek wrote:
> On Tue, Mar 16, 2021 at 11:20:05AM +0100, Rene Kita wrote:
> > % gcc -Wall -Wpedantic main.c
> > main.c: In function 'main':
> > main.c:10:16: warning: format '%hn' expects argument of type
(Please keep me CC'd, I'm not subscribe to the list)
Here is a minimal example:
#include
int
main()
{
unsigned short n;
unsigned short *p;
p = &n;
printf("p: %hn\n", p);
}
% gcc -Wall -Wpedantic main.c
main.c: In function 'main':
main.c:10:16: warning: format '%hn' expects argument of