summaryrefslogtreecommitdiff
path: root/ace/Svc_Conf.y
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-06 03:51:24 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-06 03:51:24 +0000
commitd08502998eefaf7727f3a9f1c45c0c02a1f30a80 (patch)
tree3092dd6f689b783883392dd7dccd21094699662b /ace/Svc_Conf.y
parent942b23f5cdf5eab07091eee3a9ded00804b0f28c (diff)
downloadATCD-d08502998eefaf7727f3a9f1c45c0c02a1f30a80.tar.gz
added if NDEBUG protection to some local variables and ACE_UNUSED_ARG to some parameters to avoid compiler warnings when ACE_DEBUG is disabled.
Diffstat (limited to 'ace/Svc_Conf.y')
-rw-r--r--ace/Svc_Conf.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/ace/Svc_Conf.y b/ace/Svc_Conf.y
index 8cb24221b8c..d7a279025c9 100644
--- a/ace/Svc_Conf.y
+++ b/ace/Svc_Conf.y
@@ -310,6 +310,10 @@ pathname
void
yyerror (const char *s)
{
+#if defined (ACE_NDEBUG)
+ ACE_UNUSED_ARG (s);
+#endif /* ACE_NDEBUG */
+
ACE_ERROR ((LM_ERROR,
ASYS_TEXT ("[error %d] on line %d: %s\n"),
++yyerrno,
@@ -326,8 +330,8 @@ ace_get_module (ACE_Static_Node *str_rec,
{
const ACE_Service_Type *sr = str_rec->record ();
const ACE_Service_Type_Impl *type = sr->type ();
- ACE_Stream_Type *st = sr == 0
- ? 0
+ ACE_Stream_Type *st = sr == 0
+ ? 0
: ACE_dynamic_cast (ACE_Stream_Type *,
ACE_const_cast (ACE_Service_Type_Impl *,
type));