summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2010-08-09 00:55:44 -0500
committerKeith Kanios <keith@kanios.net>2010-08-09 00:55:44 -0500
commitfe55e918fafb3f0fe9151e5473d1dcc1dd20e532 (patch)
treef8db1ecb6d2cc2648b1bcf06f3839f37ac9cb7a2 /preproc.c
parent73b34a500671fcaf03ee2c9ee5b1d36779c723e7 (diff)
downloadnasm-fe55e918fafb3f0fe9151e5473d1dcc1dd20e532.tar.gz
preproc.c: added deprecation warning for context-local label fallthrough
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index d75b58eb..885b3a98 100644
--- a/preproc.c
+++ b/preproc.c
@@ -1456,8 +1456,14 @@ static Context *get_ctx(const char *name, const char **namep,
if (namep)
*namep = name;
- if (!all_contexts)
+ if (!all_contexts) {
return ctx;
+ } else {
+ error(ERR_WARNING, "context-local label expansion"
+ " to outer contexts will be deprecated"
+ " starting in NASM 2.10, please update your"
+ " code accordingly");
+ }
do {
/* Search for this smacro in found context */