summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scope.h b/scope.h
index 49177e32a8..ba74c8bff5 100644
--- a/scope.h
+++ b/scope.h
@@ -208,9 +208,11 @@ scope has the given name. C<name> must be a literal string.
STMT_START { \
DEBUG_SCOPE("LEAVE \"" name "\"") \
if (PL_scopestack_name) { \
+ GCC_DIAG_IGNORE_STMT(-Wstring-compare); \
assert(((char*)PL_scopestack_name[PL_scopestack_ix-1] \
== (char*)name) \
|| strEQ(PL_scopestack_name[PL_scopestack_ix-1], name)); \
+ GCC_DIAG_RESTORE_STMT; \
} \
pop_scope(); \
} STMT_END