Skip to content

test/cfg/boost.cpp: added missing include for `BOOST_SCOPED_ENUM_DECL…#6817

Merged
firewave merged 1 commit intocppcheck-opensource:2.15.xfrom
firewave:2.15.x-boost
Sep 21, 2024
Merged

test/cfg/boost.cpp: added missing include for `BOOST_SCOPED_ENUM_DECL…#6817
firewave merged 1 commit intocppcheck-opensource:2.15.xfrom
firewave:2.15.x-boost

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

…ARE_*` (#6808)

Fixes potential syntax checking in cfg tests on macos-12 as some runners might now have Boost installed:

Boost found and working, checking syntax with g++ now.
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:90:49: error: expected ';' after expression
    BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_errc) {
                                                ^
                                                ;
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:90:37: error: use of undeclared identifier 'future_errc'
    BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_errc) {
                                    ^
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:92:9: error: use of undeclared identifier 'no_state'
        no_state
        ^
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:94:47: error: expected ';' after expression
    BOOST_SCOPED_ENUM_DECLARE_END(future_errc)
                                              ^
                                              ;
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:94:35: error: use of undeclared identifier 'future_errc'
    BOOST_SCOPED_ENUM_DECLARE_END(future_errc)
                                  ^
5 errors generated.
make: *** [checkcfg] Error 1

(cherry picked from commit 3199102)

…ARE_*` (cppcheck-opensource#6808)

Fixes potential syntax checking in cfg tests on `macos-12` as some
runners might now have Boost installed:
```
Boost found and working, checking syntax with g++ now.
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:90:49: error: expected ';' after expression
    BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_errc) {
                                                ^
                                                ;
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:90:37: error: use of undeclared identifier 'future_errc'
    BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_errc) {
                                    ^
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:92:9: error: use of undeclared identifier 'no_state'
        no_state
        ^
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:94:47: error: expected ';' after expression
    BOOST_SCOPED_ENUM_DECLARE_END(future_errc)
                                              ^
                                              ;
/Users/runner/work/cppcheck/cppcheck/test/cfg/boost.cpp:94:35: error: use of undeclared identifier 'future_errc'
    BOOST_SCOPED_ENUM_DECLARE_END(future_errc)
                                  ^
5 errors generated.
make: *** [checkcfg] Error 1
```

(cherry picked from commit 3199102)
@firewave
Copy link
Copy Markdown
Collaborator Author

Backport of #6808.

@firewave
Copy link
Copy Markdown
Collaborator Author

The build failure is fixed by #6816 which is already merged. As I currently cannot remember how to rebase the branch based not on main locally I merge this even with the failure.

@firewave firewave merged commit 51b1fc1 into cppcheck-opensource:2.15.x Sep 21, 2024
@firewave firewave deleted the 2.15.x-boost branch September 21, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant