[Ace-users] [ace-bugs] Warnings in tests with g++4.2
Johnny Willemsen
jwillemsen at remedy.nl
Sun Oct 28 14:16:06 CDT 2007
Hi,
Thanks for using the PRF form. I have fixed the void* in my local tree, I
have more changes pending and commit this later this week. For the
ARGV_Test, can you try to make the constructors of ACE_ARGV explicit? The
cast seems not a good solution. Just be aware that we haven't build ACE/TAo
with GCC 4.2, you are the first person who tries it ;-). We welcome patches
for supporting GCC 4.2
REgards,
Johnny Willemsen
Remedy IT
Postbus 101
2650 AC Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl <http://scoreboard.theaceorb.nl/> ***
*** Commercial service and support for ACE/TAO/CIAO ***
*** See http://www.theaceorb.nl/en/support.html ***
________________________________
From: ace-bugs-bounces at cse.wustl.edu
[mailto:ace-bugs-bounces at cse.wustl.edu] On Behalf Of Robert Iakobashvili
Sent: Sunday, October 28, 2007 9:52 AM
To: ace-users at cse.wustl.edu; ace-bugs at cs.wustl.edu
Subject: [ace-bugs] Warnings in tests with g++4.2
Hi,
"Back to the USSR" (ACE)
ACE VERSION: 5.6.1
HOST MACHINE and OPERATING SYSTEM: linux, Debian
THE $ACE_ROOT/ace/config.h
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
#define ACE_SHOULD_MALLOC_STATIC_OBJECT_LOCK 1
#define ACE_HAS_REACTOR_NOTIFICATION_QUEUE 1
#define ACE_HAS_ICMP_SUPPORT 1
#include "ace/config-linux.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
CFLAGS += -Werror -fno-enforce-eh-specs -fcheck-new
OCFLAGS = -O3 -ffast-math -finline-functions -funroll-all-loops
-finline-limit=800 -mmmx -msse \
-foptimize-sibling-calls -fomit-frame-pointer
PCFLAGS += -pg
PCCFLAGS += -pg
debug=0
optimize=1
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
AREA/CLASS/EXAMPLE AFFECTED:
tests/ARGV_Test.cpp
g++ -fvisibility=hidden -fvisibility-inlines-hidden -Werror
-fno-enforce-eh-specs -fcheck-new -W -Wall -Wpointer-arith -O3 -ffast-math
-finline-functions -funroll-all-loops -finline-limit=800 -mmmx -msse
-foptimize-sibling-calls -fomit-frame-pointer -pipe -pipe
-DACE_HAS_LINUX_NPTL -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE
-I/home/robert/ACE_wrappers -DACE_NDEBUG -DACE_USE_RCSID=0
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -c -o .obj/ARGV_Test.o
ARGV_Test.cpp
cc1plus: warnings being treated as errors
ARGV_Test.cpp: In function 'int test_argv_quotes()':
ARGV_Test.cpp:250: warning: the address of 'argv' will always
evaluate as 'true'
make[1]: *** [.obj/ARGV_Test.o] Error 1
tests/Malloc_Test.cpp
g++ -fvisibility=hidden -fvisibility-inlines-hidden
-fno-enforce-eh-specs -fcheck-new -W -Wall -Wpointer-arith -O3 -ffast-math
-finline-functions -funroll-all-loops -finline-limit=800 -mmmx -msse
-foptimize-sibling-calls -fomit-frame-pointer -pipe -pipe
-DACE_HAS_LINUX_NPTL -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE
-I/home/robert/ACE_wrappers -DACE_NDEBUG -DACE_USE_RCSID=0
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -c -o .obj/Malloc_Test.o
Malloc_Test.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
cc1plus: warnings being treated as errors
Malloc_Test.cpp: In function 'int run_main(int, ACE_TCHAR**)':
Malloc_Test.cpp:288: warning: 'bar' may be used uninitialized in
this function
Malloc_Test.cpp:288: note: 'bar' was declared here
make[1]: *** [.obj/Malloc_Test.o] Error 1
tests/Malloc_Test.cpp
DOES THE PROBLEM AFFECT:
COMPILATION? Yes
SAMPLE FIX/WORKAROUND:
tests/ARGV_Test.cpp
Casting added helps to resolve the constructor's ambuiquty.
ACE_ARGV args3((ACE_TCHAR **)argv);
tests/Malloc_Test.cpp
Make initialization.
void *bar = 0;
--
Sincerely,
Robert Iakobashvili,
coroberti %x40 gmail %x2e com
...........................................................
http://curl-loader.sourceforge.net
<http://curl-loader.sourceforge.net>
A web testing and traffic generation tool.
More information about the Ace-users
mailing list