VS 2005 warnings

Started by
12 comments, last by Schrompf 16 years, 11 months ago
Quote:Original post by SunTzu
C4255: 'function' : no function prototype given: converting '()' to '(void)'


Actually I consider (void) to be worse than (). It's C++ and in C++ () means no parameters.
Advertisement
Quote:Original post by Lode
Quote:Original post by SunTzu
C4255: 'function' : no function prototype given: converting '()' to '(void)'


Actually I consider (void) to be worse than (). It's C++ and in C++ () means no parameters.


Lucky that warning only applies to the C compiler then :)
Quote:Original post by mattd
Quote:Original post by Lode
Quote:Original post by SunTzu
C4255: 'function' : no function prototype given: converting '()' to '(void)'


Actually I consider (void) to be worse than (). It's C++ and in C++ () means no parameters.


Lucky that warning only applies to the C compiler then :)


Exactly. :-)
From my knowledge these "conversion from 'size_t' to 'std::streamsize', possible loss of data." warning stem from a project setting "Warn on 64Bit incompatibilities" (or similar). This setting is present in every project you create. It forces the compiler to issue warnings as if size_t was 64Bit, although the code generated afterwards is still a 32Bit size_t. If you are sure your code will not be compiled for a 64Bit target, you can safely deactivate this setting.

Bye, Thomas
----------
Gonna try that "Indie" stuff I keep hearing about. Let's start with Splatter.

This topic is closed to new replies.

Advertisement