summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_decl.cpp
diff options
context:
space:
mode:
authorsergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-26 07:45:26 +0000
committersergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-26 07:45:26 +0000
commit3513db5251a6b69381e74c1a1897b13bab186f36 (patch)
tree8264a82de6ae00e6695a2b1cd11cee4a4dd14843 /TAO/TAO_IDL/be/be_decl.cpp
parent88fb54affa03021d4e8b982ecdb83bfc80a5bd49 (diff)
downloadATCD-3513db5251a6b69381e74c1a1897b13bab186f36.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be/be_decl.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_decl.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp
index 7b3b864da76..05cf9da8c23 100644
--- a/TAO/TAO_IDL/be/be_decl.cpp
+++ b/TAO/TAO_IDL/be/be_decl.cpp
@@ -49,9 +49,9 @@ be_decl::be_decl (AST_Decl::NodeType type, UTL_ScopedName *n, UTL_StrList
srv_skel_gen_ (I_FALSE),
srv_inline_gen_ (I_FALSE),
seq_names_ (NULL),
- encap_len_ (-1),
fullname_ (0),
- size_type_ (be_decl::FIXED) // everybody is fixed size to start with
+ size_type_ (be_decl::FIXED), // everybody is fixed size to start with
+ encap_len_ (-1)
{
}
@@ -230,7 +230,7 @@ be_decl::compute_flatname (void)
this->flatname_ = new char [namelen+1];
this->flatname_[0] = '\0';
first = I_TRUE;
- second - I_FALSE;
+ second = I_FALSE;
i = new UTL_IdListActiveIterator (this->name ());
while (!(i->is_done ()))
{
@@ -302,7 +302,7 @@ be_decl::compute_repoID (void)
ACE_OS::sprintf (this->repoID_, "%s", "IDL:");
i = new UTL_IdListActiveIterator (this->name ());
first = I_TRUE;
- second - I_FALSE;
+ second = I_FALSE;
while (!(i->is_done ()))
{
if (!first)
@@ -338,7 +338,7 @@ be_decl::tc_name2long (const char *name, long *&larr, long &arrlen)
{
static char buf [MAXNAMELEN];
long slen;
- int i;
+ unsigned int i;
slen = ACE_OS::strlen (name) + 1; // 1 for NULL terminating
@@ -471,6 +471,9 @@ be_decl::gen_var_defn (void)
be_sequence *bs = be_sequence::narrow_from_decl (this);
be_type *bt = be_type::narrow_from_decl (bs->base_type ());
+ // Macro to avoid "warning: unused parameter" type warning.
+ ACE_UNUSED_ARG (bt);
+
// cast operator
*ch << "operator const " << local_name () << " &() const;" << nl;
*ch << "operator " << local_name () << " &();" << nl;
@@ -1081,6 +1084,9 @@ be_decl::gen_var_impl (void)
be_sequence *bs = be_sequence::narrow_from_decl (this);
be_type *bt = be_type::narrow_from_decl (bs->base_type ());
+ // Macro to avoid "warning: unused parameter" type warning.
+ ACE_UNUSED_ARG (bt);
+
// default constr
*ci << "ACE_INLINE" << nl;
*ci << fname << "::" << lname <<
@@ -1344,6 +1350,9 @@ be_decl::gen_out_defn (void)
be_sequence *bs = be_sequence::narrow_from_decl (this);
be_type *bt = be_type::narrow_from_decl (bs->base_type ());
+ // Macro to avoid "warning: unused parameter" type warning.
+ ACE_UNUSED_ARG (bt);
+
// overloaded [] operator only for sequence. The const version is not
// required
// bt->gen_type ();