[Boost-bugs] [Boost C++ Libraries] #7043: A warning for compiler warning creates another compiler warning

Subject: [Boost-bugs] [Boost C++ Libraries] #7043: A warning for compiler warning creates another compiler warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-28 13:38:48


#7043: A warning for compiler warning creates another compiler warning
-----------------------------------------------------+----------------------
 Reporter: Hideaki Takei <hideaki.takei@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.49.0 | Severity: Cosmetic
 Keywords: |
-----------------------------------------------------+----------------------
 Please remove the unnecessary non-ascii character located just after the
 sceond single quotation mark at line 34 of
 boost/type_traits/detail/has_binary_operator.hpp. This causes a compiler
 warning as indicated below.

 http://boost.cowic.de/rc/inspect-trunk.html#type_traits

> boost\type_traits\detail\has_binary_operator.hpp:
> (line 34) Non-ASCII: // warning C4547: '*'Â : operator before
 comma has no effect; expected operator with side-effec


 Following is the one I got in Visual Studio 2008 on Japanese Windows:

 E:\App\boost_1_49_0\boost/type_traits/detail/has_binary_operator.hpp :
 warning C4819: The file contains a character that cannot be represented in
 the current code page (932). Save the file in Unicode format to prevent
 data loss


 The funny thing is that this comment is warning another compiler warning
 :)


 {{{
 27: // cannot include this header without getting warnings of the kind:
 28: // gcc:
 29: // warning: value computed is not used
 30: // warning: comparison between signed and unsigned integer
 expressions
 31: // msvc:
 32: // warning C4018: '<' : signed/unsigned mismatch
 33: // warning C4244: '+=' : conversion from 'double' to 'char',
 possible loss of data
 34: // warning C4547: '*'Â : operator before comma has no effect;
 expected operator with side-effect
 35: // warning C4800: 'int' : forcing value to bool 'true' or 'false'
 (performance warning)
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7043>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC