From 414812a6701903ae76d04048be66734a5f3ddc67 Mon Sep 17 00:00:00 2001 From: kitty Date: Fri, 22 Jun 2001 05:55:55 +0000 Subject: ChangeLogTag: Fri Jun 22 00:26:34 2001 Krishnakumar B --- ChangeLog | 12 ++++++++++++ ChangeLogs/ChangeLog-02a | 12 ++++++++++++ ChangeLogs/ChangeLog-03a | 12 ++++++++++++ examples/IOStream/client/iostream_client.cpp | 6 ++++-- examples/IOStream/server/iostream_server.cpp | 2 ++ examples/Log_Msg/test_ostream.cpp | 2 +- 6 files changed, 43 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c82a64b6af1..d568035beaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Fri Jun 22 00:26:34 2001 Krishnakumar B + + * examples/Log_Msg/test_ostream.cpp (main): + + Changed the type of flags to ios::openmode from int to fix + errors under gcc-3.0. + + * examples/IOStream/client: + * examples/IOStream/server: + + Added ACE_UNUSED_ARG to fix a couple of warnings. + Thu Jun 21 13:57:09 2001 Chad Elliott * apps/JAWS/clients/Caching/http_handler.h: diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index c82a64b6af1..d568035beaf 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,15 @@ +Fri Jun 22 00:26:34 2001 Krishnakumar B + + * examples/Log_Msg/test_ostream.cpp (main): + + Changed the type of flags to ios::openmode from int to fix + errors under gcc-3.0. + + * examples/IOStream/client: + * examples/IOStream/server: + + Added ACE_UNUSED_ARG to fix a couple of warnings. + Thu Jun 21 13:57:09 2001 Chad Elliott * apps/JAWS/clients/Caching/http_handler.h: diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index c82a64b6af1..d568035beaf 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,15 @@ +Fri Jun 22 00:26:34 2001 Krishnakumar B + + * examples/Log_Msg/test_ostream.cpp (main): + + Changed the type of flags to ios::openmode from int to fix + errors under gcc-3.0. + + * examples/IOStream/client: + * examples/IOStream/server: + + Added ACE_UNUSED_ARG to fix a couple of warnings. + Thu Jun 21 13:57:09 2001 Chad Elliott * apps/JAWS/clients/Caching/http_handler.h: diff --git a/examples/IOStream/client/iostream_client.cpp b/examples/IOStream/client/iostream_client.cpp index 3c2e37b7452..47c2413c748 100644 --- a/examples/IOStream/client/iostream_client.cpp +++ b/examples/IOStream/client/iostream_client.cpp @@ -10,7 +10,7 @@ ACE_RCSID(client, iostream_client, "$Id$") // ACE_Streambuf_T templates to create an object based on ACE_*_Stream // classes, which mimic a C++ iostream. -int +int main (int argc, char *argv[]) { #if !defined (ACE_LACKS_ACE_IOSTREAM) @@ -29,7 +29,7 @@ main (int argc, char *argv[]) -1); // Buffer up some things to send to the server. - server << "1 2.3 testing" << endl; + server << "1 2.3 testing" << endl; int i; float f; @@ -58,6 +58,8 @@ main (int argc, char *argv[]) "close"), -1); #else + ACE_UNUSED_ARG (argc); + ACE_UNUSED_ARG (argv); ACE_ERROR ((LM_ERROR, "ACE_IOSTREAM not supported on this platform\n")); #endif /* !ACE_LACKS_ACE_IOSTREAM */ return 0; diff --git a/examples/IOStream/server/iostream_server.cpp b/examples/IOStream/server/iostream_server.cpp index 422eeb17ba9..e82e069a6cc 100644 --- a/examples/IOStream/server/iostream_server.cpp +++ b/examples/IOStream/server/iostream_server.cpp @@ -121,6 +121,8 @@ main (int argc, char *argv []) "(%P) shutting down server daemon\n")); #else + ACE_UNUSED_ARG (argc); + ACE_UNUSED_ARG (argv); ACE_ERROR ((LM_ERROR, "ACE_IOSTREAM not supported on this platform\n")); #endif /* !ACE_LACKS_ACE_IOSTREAM */ return 0; diff --git a/examples/Log_Msg/test_ostream.cpp b/examples/Log_Msg/test_ostream.cpp index 098e5de05a0..604366d4622 100644 --- a/examples/Log_Msg/test_ostream.cpp +++ b/examples/Log_Msg/test_ostream.cpp @@ -46,7 +46,7 @@ main (int, char *[]) #if !defined (ACE_LACKS_IOSTREAM_TOTALLY) // Create a persistent store. const char *filename = "output"; - int flags = ios::out | ios::trunc; + ios::openmode flags = ios::out | ios::trunc; ofstream myostream (filename, flags); // Check for errors. -- cgit v1.2.1