https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79210

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
I'm not able to reproduce the assertion failure, with xgcc (GCC) 7.0.1 20170120
(experimental); on x86_64-pc-linux-gnu.

$ ./xgcc -B. -c /tmp/test.c -Wformat -Wformat-signedness
/tmp/test.c: In function ‘lpfc_peer_port_login_init’:
/tmp/test.c:9:20: warning: format ‘%d’ expects argument of type ‘int’, but
argument 4 has type ‘unsigned int’ [-Wformat=]
                    "0423 lpfc_"#attr" attribute cannot be set to %d, "\
                    ^
/tmp/test.c:15:1: note: in expansion of macro ‘lpfc_vport_param_init’
 lpfc_vport_param_init(name)\
 ^~~~~~~~~~~~~~~~~~~~~
/tmp/test.c:17:1: note: in expansion of macro ‘LPFC_VPORT_ATTR_R’
 LPFC_VPORT_ATTR_R(peer_port_login,
 ^~~~~~~~~~~~~~~~~

I'm wondering if this is sensitive to whitespace, and if somehow the reproducer
was mangled when copying&pasting to BZ and back.

Can you please add the reproducer as an attachment?  Thanks.

Reply via email to