Re: [mpich-discuss] using mpi.h with C++ and warnings that result (ultra-pedantic)
1 Mar
2013
1 Mar
'13
10:51 p.m.
On Mar 1, 2013, at 9:57 PM CST, Jeff Hammond wrote:
I apologize in advance for being ultra-pedantic.
I am using MPI in a purely C++ code. Is there a way to make this warning go away? I know at least one MPICH developer who shares my disdain for compiler warnings, so I hope this isn't too unreasonable.
Since I am using a C++ compiler, I can't exactly tell it to use C99 mode.
/Users/jhammond/eclipse/MPICH2/trunk/install-clang/include/mpi.h:526:9: warning: 'long long' is an extension when C99 mode is not enabled [-pedantic,-Wlong-long] typedef long long MPI_Count;
Don't compile with -pedantic. It's almost never a useful flag. Alternatively, add "-Wno-long-long" if you need other windmills to tilt at. -Dave
4890
Age (days ago)
4890
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dave Goodell