Subject: [Boost-bugs] [Boost C++ Libraries] #6863: Clang warnings in basic_regex_creator.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-04 03:56:22
#6863: Clang warnings in basic_regex_creator.hpp
------------------------------+---------------------------------------------
Reporter: ph03@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
Version: Boost 1.49.0 | Severity: Problem
Keywords: clang |
------------------------------+---------------------------------------------
Hi! I have the following warnings with
$ clang -v
clang version 3.2 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix:
In file included from /usr/include/boost-1_49/boost/regex.hpp:31:
In file included from /usr/include/boost-1_49/boost/regex/v4/regex.hpp:70:
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1038:34:
warning: equality comparison with extraneous parentheses [-Wparentheses-
equality]
else if((state->type == syntax_element_long_set_rep))
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1038:34:
note: remove extraneous parentheses around the comparison to silence this
warning
else if((state->type == syntax_element_long_set_rep))
~ ^ ~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1038:34:
note: use '=' to turn this equality comparison into an assignment
else if((state->type == syntax_element_long_set_rep))
^~
=
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1116:18:
warning: array subscript is of type 'char' [-Wchar-subscripts]
l_map['\n'] |= mask;
^~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1117:18:
warning: array subscript is of type 'char' [-Wchar-subscripts]
l_map['\r'] |= mask;
^~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1118:18:
warning: array subscript is of type 'char' [-Wchar-subscripts]
l_map['\f'] |= mask;
^~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1305:18:
warning: array subscript is of type 'char' [-Wchar-subscripts]
l_map['\n'] |= mask;
^~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1306:18:
warning: array subscript is of type 'char' [-Wchar-subscripts]
l_map['\r'] |= mask;
^~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1341:28:
warning: equality comparison with extraneous parentheses [-Wparentheses-
equality]
if((p->type == syntax_element_recurse))
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1341:28:
note: remove extraneous parentheses around the comparison to silence this
warning
if((p->type == syntax_element_recurse))
~ ^ ~
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:1341:28:
note: use '=' to turn this equality comparison into an assignment
if((p->type == syntax_element_recurse))
^~
=
---------------------------------------
In file included from /usr/include/boost-1_49/boost/regex.hpp:31:
In file included from /usr/include/boost-1_49/boost/regex/v4/regex.hpp:70:
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:528:13:
warning: unused function 'char_less' [-Wunused-function]
inline bool char_less<char>(char t1, char t2)
^
/usr/include/boost-1_49/boost/regex/v4/basic_regex_creator.hpp:533:13:
warning: unused function 'char_less' [-Wunused-function]
inline bool char_less<signed char>(signed char t1, signed char t2)
^
Are this boost problems or is clang to critical about this?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6863> 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