[Bug target/98671] gcc/config/i386/i386-options.c:787:redundantAssignment

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 14 11:21:51 GMT 2021


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

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
For the same source code file, cppcheck finds these other very minor problems:

1.

trunk.git/gcc/config/i386/i386-options.c:1520:11: warning:inconclusive: Width
10 given in format string (no. 3) is smaller than destination buffer
'align[16]'. [invalidScanfFormatWidth_smaller]

The buffer size could probably be reduced. It won't make much difference,
since there are much larger variables nearby.

2.

trunk.git/gcc/config/i386/i386-options.c:1092:12: style: Local variable 'ret'
shadows outer variable [shadowVariable]
trunk.git/gcc/config/i386/i386-options.c:918:8: note: Shadowed declaration
trunk.git/gcc/config/i386/i386-options.c:1092:12: note: Shadow variable

3.

trunk.git/gcc/config/i386/i386-options.c:2856:26: style: Local variable 'i'
shadows outer variable [shadowVariable]
trunk.git/gcc/config/i386/i386-options.c:1786:7: note: Shadowed declaration
trunk.git/gcc/config/i386/i386-options.c:2856:26: note: Shadow variable


More information about the Gcc-bugs mailing list