Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/tls-maxphys]: src/lib/libc/compat/gen Add a warning when we are using th...
details: https://anonhg.NetBSD.org/src/rev/7e3b746004e7
branches: tls-maxphys
changeset: 852935:7e3b746004e7
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 24 22:10:53 2012 +0000
description:
Add a warning when we are using the libc version of alloca(3).
diffstat:
lib/libc/compat/gen/compat_alloca.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (10 lines):
diff -r c245301c0746 -r 7e3b746004e7 lib/libc/compat/gen/compat_alloca.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/compat/gen/compat_alloca.c Wed Oct 24 22:10:53 2012 +0000
@@ -0,0 +1,6 @@
+#include <sys/cdefs.h>
+
+__warn_references(alloca,
+ "Warning: reference to the libc supplied alloca(3); this most likely will "
+ "not work. Please use the compiler provided version of alloca(3), by "
+ "supplying the appropriate compiler flags (e.g. not -std=c89).")
Home |
Main Index |
Thread Index |
Old Index