summaryrefslogtreecommitdiff
path: root/ACE/ace/Svc_Conf.y
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Svc_Conf.y')
-rw-r--r--ACE/ace/Svc_Conf.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/ace/Svc_Conf.y b/ACE/ace/Svc_Conf.y
index e38be91dd79..6c45e9c5f20 100644
--- a/ACE/ace/Svc_Conf.y
+++ b/ACE/ace/Svc_Conf.y
@@ -38,6 +38,13 @@ static ACE_Module_Type *
// Normalize the message literal's type to match yyerror() prototype
#define YY_ ACE_TEXT
+// Prevent yacc(1) from declaring a trivial YYSTYPE just because
+// YYSTYPE is not a macro definition. On the other hand we want
+// YYSTYPE_IS_DECLARED to be as localized as possible to avoid
+// poluting the global namespace - there may be other yacc(1) parsers
+// that want to play nice with ACE
+#define YYSTYPE_IS_DECLARED
+
ACE_END_VERSIONED_NAMESPACE_DECL
%}
@@ -153,6 +160,7 @@ stream_modules
}
module_list '}'
{
+ ACE_UNUSED_ARG ($2);
$$ = $3;
}
| /* EMPTY */ { $$ = 0; }