]> git.ipfire.org Git - thirdparty/gcc.git/commit
deref-before-check-pr113253.c: Fix bogus warnings on lp32
authorJonathan Yong <10walls@gmail.com>
Mon, 7 Apr 2025 15:40:05 +0000 (15:40 +0000)
committerJonathan Yong <10walls@gmail.com>
Wed, 9 Apr 2025 14:08:26 +0000 (14:08 +0000)
commit9ea6bdac02af61f360b5741bef978be02924252d
tree886ab5c98a0e29a19a7628be77ea6f0c89c902c6
parent0f74d1e38a7dd1931ab110c2b64b633393393437
deref-before-check-pr113253.c: Fix bogus warnings on lp32

Warnings about pointer sizes cause the test to fail
incorrectly. A dummy return value is also added to
set_marker_internal for completeness to suppress a
-Wreturn-type warning even though gcc does not issue
it by default.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/ChangeLog:

PR analyzer/113253
* gcc.dg/analyzer/deref-before-check-pr113253.c:
(ptrdiff_t): use stddef.h type.
(uintptr_t): ditto.
(EMACS_INT): ditto.
(set_marker_internal): Add dummy 0 to suppress -Wreturn-type.
gcc/testsuite/gcc.dg/analyzer/deref-before-check-pr113253.c