summaryrefslogtreecommitdiff
path: root/nuttx/include/stdlib.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-05-16 09:07:42 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-05-16 09:07:42 +0200
commite0ea1b36bd01a84f291994328004b7e331009eea (patch)
tree5930d77d245708527f36b924039b5e6be6ea1aff /nuttx/include/stdlib.h
parenta4f63a6cf75b35556a6722ed7b6fd6ea6059495d (diff)
downloadpx4-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.h3
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