Skip to content

-Wswitch-enum warnings in v4/basic_regex_creator.hpp #84

Open
@anadon

Description

@anadon

Testing graph with new options, the following warnings came up which should be addressed:

clang-linux.compile.c++.without-pch ../../../bin.v2/libs/graph/test/graphviz_test.test/clang-linux-8.0.0/debug/threading-multi/visibility-hidden/graphviz_test.o
In file included from graphviz_test.cpp:16:
In file included from ../../../boost/regex.hpp:31:
In file included from ../../../boost/regex/v4/regex.hpp:70:
../../../boost/regex/v4/basic_regex_creator.hpp:717:14: warning: 26 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_endmark', 'syntax_element_literal'... [-Wswitch-enum]
      switch(state->type)
             ^
../../../boost/regex/v4/basic_regex_creator.hpp:828:32: warning: 28 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_literal', 'syntax_element_start_line'... [-Wswitch-enum]
                        switch(p->type)
                               ^
../../../boost/regex/v4/basic_regex_creator.hpp:757:14: warning: 32 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_endmark', 'syntax_element_literal'... [-Wswitch-enum]
      switch(state->type)
             ^
../../../boost/regex/v4/basic_regex_creator.hpp:903:14: warning: 26 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_endmark', 'syntax_element_literal'... [-Wswitch-enum]
      switch(state->type)
             ^
../../../boost/regex/v4/basic_regex_creator.hpp:984:14: warning: 18 enumeration values not explicitly handled in switch: 'syntax_element_start_line', 'syntax_element_end_line', 'syntax_element_match'... [-Wswitch-enum]
      switch(state->type)
             ^
../../../boost/regex/v4/basic_regex_creator.hpp:1083:14: warning: 10 enumeration values not explicitly handled in switch: 'syntax_element_start_line', 'syntax_element_word_boundary', 'syntax_element_within_word'... [-Wswitch-enum]
      switch(state->type)
             ^
../../../boost/regex/v4/basic_regex_creator.hpp:1384:14: warning: 28 enumeration values not explicitly handled in switch: 'syntax_element_literal', 'syntax_element_end_line', 'syntax_element_wild'... [-Wswitch-enum]
      switch(state->type)
             ^
../../../boost/regex/v4/basic_regex_creator.hpp:1430:11: warning: 29 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_endmark', 'syntax_element_literal'... [-Wswitch-enum]
   switch(pt->type)
          ^
../../../boost/regex/v4/basic_regex_creator.hpp:1452:11: warning: 29 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_endmark', 'syntax_element_literal'... [-Wswitch-enum]
   switch(pt->type)
          ^
../../../boost/regex/v4/basic_regex_creator.hpp:1480:17: warning: 30 enumeration values not explicitly handled in switch: 'syntax_element_startmark', 'syntax_element_endmark', 'syntax_element_start_line'... [-Wswitch-enum]
         switch(state->next.p->type)
                ^
../../../boost/regex/v4/basic_regex_creator.hpp:1507:14: warning: 19 enumeration values not explicitly handled in switch: 'syntax_element_literal', 'syntax_element_wild', 'syntax_element_match'... [-Wswitch-enum]
      switch(state->type)

These looks easy and I can make the patch if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions