[orbitcpp-list] 2nd try [PATCHLET] Fix annoying warning when compiling generated files
Status: Beta
Brought to you by:
philipd
From: Dan K. <dk...@ix...> - 2002-04-18 16:12:16
|
Sorry about the formatting of that last message. 2nd try: Compiling files generated by orbit-idl --lang=c++ generates tons and tons of warnings because of a missing 'const' in _orbitcpp::error's prototype. Here's a little patch to add the missing const (which is still missing in cvs, I believe). Now, I know y'all are focusing on orbit2, but still, it's probably a good idea to maintain orbit0's stuff at least until orbit2 is production-ready. I'll gladly buy a beer for the maintainer who commits this patchlet, or something like it... Thanks, Dan - Dan diff --exclude-from=x -au orbitcpp-0.30.4.orig/orb/orbitcpp_tools.cc orbitcpp-0.30.4/orb/orbitcpp_tools.cc --- orbitcpp-0.30.4.orig/orb/orbitcpp_tools.cc Thu Apr 18 08:34:14 2002 +++ orbitcpp-0.30.4/orb/orbitcpp_tools.cc Thu Apr 18 08:34:57 2002 @@ -58,7 +58,7 @@ -void _orbitcpp::error(char *text) { +void _orbitcpp::error(const char *text) { printf("%s\n",text); abort(); } diff --exclude-from=x -au orbitcpp-0.30.4.orig/orb/orbitcpp_tools.hh orbitcpp-0.30.4/orb/orbitcpp_tools.hh --- orbitcpp-0.30.4.orig/orb/orbitcpp_tools.hh Thu Apr 18 08:34:14 2002 +++ orbitcpp-0.30.4/orb/orbitcpp_tools.hh Thu Apr 18 08:35:02 2002 @@ -69,7 +69,7 @@ inline void release_guarded(CORBA_TypeCode tc) {release_guarded((CORBA_Object)tc);} - void error(char *text); + void error(const char *text); // JKL: this is used by any to make temporary and bounded string typecodes CORBA_TypeCode TypeCode_allocate(); |