divyang4481 / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

How can i eliminate the warnings during compilation #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile the rcf server code with g++ 

When we compile the code , we are getting a warning :: converting of 
negative value 0x000000001 to "size_t" . What can we do so that we won't 
get this warning during compilation.

We are using this rcf and we are trying to build a release build. Our 
compilation output is endup in warnings like this. Can you please tell us 
what to do not to get this warning message during compilation. 

if we turn off the warning with -Werror, we are ending up in compilation 
error.

What version of the product are you using? On what operating system?
Version: RCF1.0 
Operating system: Linux

Thanks
-Raveendra

Original issue reported on code.google.com by mraveend...@gmail.com on 30 Jan 2009 at 6:43

GoogleCodeExporter commented 9 years ago
-Werror is telling the compiler to treat all warnings as errors.
-Wall   is telling the compiler to display all warnings
-w      [note lower case w] is to inhibit all warnings
-pedantic  is telling the compiler to be very rigorous is checking and 
warnings. 
Very thorough...
-pedantic-errors is telling the compiler be very rigorous in checking and treat 
all
warnings as errors.

Your getting the errors because -Werror is telling the compiler to treat the 
warnings
as errors.  Use -w to hide the warnings.  Though if someone has a better method 
to
actually solve the warnings [which is ideal] I would like to know aswell.

Original comment by ian.harr...@gmail.com on 2 Feb 2009 at 7:24

GoogleCodeExporter commented 9 years ago
Raveendra, which source code line is triggering the warning?

Regards,
Jarl.

Original comment by jarl.lin...@gmail.com on 3 Feb 2009 at 12:00

GoogleCodeExporter commented 9 years ago
If I am right this warning appears since version 0.9.
But, the warning occurs in version 1.0:
/include/RCF/Marshal.hpp:352: Warnung: converting vom negativen Wert
»-0x00000000000000001« nach »size_t:

349: clientStub.mOut.reset(
350:                       protocol,
351:                       32,
352:                       clientStub.mRequest.encodeRequestHeader()); 

Original comment by SirAnnTh...@googlemail.com on 17 Feb 2009 at 11:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 28 May 2009 at 1:48

GoogleCodeExporter commented 9 years ago
RCF 1.1 has been tested to compile without warnings on gcc 4.3 (on Linux).

Original comment by jarl.lin...@gmail.com on 11 Jul 2009 at 10:38