diff options
author | Jonathan Yong <10walls@gmail.com> | 2024-02-02 23:47:47 +0000 |
---|---|---|
committer | Jonathan Yong <10walls@gmail.com> | 2024-02-14 15:56:42 +0000 |
commit | eafbb05c49957096d5118dfa661c0efba774bd8b (patch) | |
tree | e1aa04fe3a56f8afaeef6a8057e76b167ca00e18 /libgcc | |
parent | 9bc6b23d11697545e8a951ccd60691b1e58b98c2 (diff) | |
download | gcc-eafbb05c49957096d5118dfa661c0efba774bd8b.zip gcc-eafbb05c49957096d5118dfa661c0efba774bd8b.tar.gz gcc-eafbb05c49957096d5118dfa661c0efba774bd8b.tar.bz2 |
coreutils-sum-pr108666.c: fix spurious LLP64 warnings
Fixes the following warnings on x86_64-w64-mingw32:
coreutils-sum-pr108666.c:17:1: warning: conflicting types for built-in function ‘memcpy’; expected ‘void *(void *, const void *, long long unsigned int)’ [-Wbuiltin-declaration-mismatch]
17 | memcpy(void* __restrict __dest, const void* __restrict __src, size_t __n)
| ^~~~~~
coreutils-sum-pr108666.c:25:1: warning: conflicting types for built-in function ‘malloc’; expected ‘void *(long long unsigned int)’ [-Wbuiltin-declaration-mismatch]
25 | malloc(size_t __size) __attribute__((__nothrow__, __leaf__))
| ^~~~~~
gcc/testsuite:
* c-c++-common/analyzer/coreutils-sum-pr108666.c: Use
__SIZE_TYPE__ instead of long unsigned int for size_t
definition.
Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions