diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-10 22:37:42 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-10 22:37:42 +0000 |
commit | 824508e4f8539cb86f68b77ff955193bd61e024f (patch) | |
tree | 3e93e3b142f45e93bb2dd7c77d7e7c20bec5d220 | |
parent | 8b324fcc956421b9721259e644f727ecc5214717 (diff) | |
download | ATCD-824508e4f8539cb86f68b77ff955193bd61e024f.tar.gz |
Added an init to 0 in each file to avert SunOS egcs warnings.
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_cs.cpp | 3 | ||||
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_cs.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_cs.cpp index 892dce31bd4..b42030ec7ab 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_obj_sequence_cs.cpp @@ -93,7 +93,8 @@ be_visitor_sequence_cs::gen_unbounded_obj_sequence (be_sequence *node) << full_class_name << "::_allocate_buffer (CORBA::ULong length)" << be_nl << "{" << be_idt_nl; pt->accept(visitor); - *os <<" **tmp = " << full_class_name << "::allocbuf (length);" << be_nl + *os <<" **tmp = 0;" << be_nl + << "tmp = " << full_class_name << "::allocbuf (length);" << be_nl << be_nl << "if (this->buffer_ != 0)" << be_nl << "{" << be_idt_nl; diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_cs.cpp index c57f5ee63b2..93c7138ba1a 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/gen_unbounded_sequence_cs.cpp @@ -92,7 +92,8 @@ be_visitor_sequence_cs::gen_unbounded_sequence (be_sequence *node) << full_class_name << "::_allocate_buffer (CORBA::ULong length)" << be_nl << "{" << be_idt_nl; pt->accept (visitor); - *os <<"* tmp = " << full_class_name << "::allocbuf (length);" << be_nl + *os << "* tmp = 0;" << be_nl + << "tmp = " << full_class_name << "::allocbuf (length);" << be_nl << be_nl << "if (this->buffer_ != 0)" << be_nl << "{" << be_idt_nl; |