diff options
| author | Kostya Kortchinsky <kostyak@google.com> | 2018-07-03 19:03:46 +0000 |
|---|---|---|
| committer | Kostya Kortchinsky <kostyak@google.com> | 2018-07-03 19:03:46 +0000 |
| commit | e64a81475c3e705d35cf74c451ced12ee0dc9ffb (patch) | |
| tree | 7254cbe1ad664302d60a2d51722c4f927ba89edb /llvm/lib | |
| parent | 181aa26eb87070a109ab7173c2d7916a448c2100 (diff) | |
| download | bcm5719-llvm-e64a81475c3e705d35cf74c451ced12ee0dc9ffb.tar.gz bcm5719-llvm-e64a81475c3e705d35cf74c451ced12ee0dc9ffb.zip | |
[scudo] Get rid of builtin-declaration-mismatch warnings
Summary:
The C interceptors were using `SIZE_T` defined in the interception library as
a `__sanitizer::uptr`. On some 32-bit platforms, this lead to the following
warning:
```
warning: declaration of ‘void* malloc(SIZE_T)’ conflicts with built-in declaration ‘void* malloc(unsigned int)’ [-Wbuiltin-declaration-mismatch]
INTERCEPTOR_ATTRIBUTE void *malloc(SIZE_T size) {
```
`__sanitizer::uptr` is indeed defined as an `unsigned long` on those.
So just include `stddef.h` and use `size_t` instead.
Reviewers: alekseyshl
Reviewed By: alekseyshl
Subscribers: delcypher, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D48885
llvm-svn: 336221
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

