diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-16 09:07:42 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-16 09:07:42 +0200 |
commit | e0ea1b36bd01a84f291994328004b7e331009eea (patch) | |
tree | 5930d77d245708527f36b924039b5e6be6ea1aff /nuttx/include/stdlib.h | |
parent | a4f63a6cf75b35556a6722ed7b6fd6ea6059495d (diff) | |
download | px4-nuttx-e0ea1b36bd01a84f291994328004b7e331009eea.tar.gz px4-nuttx-e0ea1b36bd01a84f291994328004b7e331009eea.tar.bz2 px4-nuttx-e0ea1b36bd01a84f291994328004b7e331009eea.zip |
Disable -Wshadow warnings for system headers - alternatively we could use #pragma GCC system_header in those
Diffstat (limited to 'nuttx/include/stdlib.h')
-rw-r--r-- | nuttx/include/stdlib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/include/stdlib.h b/nuttx/include/stdlib.h index 08d35e1c6..74ecbf4ed 100644 --- a/nuttx/include/stdlib.h +++ b/nuttx/include/stdlib.h @@ -189,7 +189,10 @@ void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); #ifdef CONFIG_CAN_PASS_STRUCTS +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" struct mallinfo mallinfo(void); +#pragma GCC diagnostic pop #else int mallinfo(struct mallinfo *info); #endif |