fix lambda captures and rebump to v0.5.5 #269
Annotations
4 errors and 4 warnings
Ubuntu Latest GCC
FAILED: tests/CMakeFiles/test-basic.dir/basic.cc.o
/home/runner/work/cmdr-cxx/cmdr-cxx/ccache /usr/bin/g++-10 -DCMDR_ENABLE_ASSERTIONS=1 -DCMDR_ENABLE_PRECONDITION_CHECKS=1 -DCMDR_ENABLE_WRAPPER=1 -DCMDR_TEST_THREAD_POOL_DBGOUT=1 -DCMDR_UNIT_TEST=1 -I/home/runner/work/cmdr-cxx/cmdr-cxx/build/generated -I/home/runner/work/cmdr-cxx/cmdr-cxx -I/home/runner/work/cmdr-cxx/cmdr-cxx/libs/cmdr11/include -g -std=c++2a -fPIE -Wall -Wextra -pedantic -Werror -Wno-unknown-pragmas -D_DEBUG -DDEBUG=1 -Wshadow -DCMDR_CXX11_UNIT_TEST=1 -MD -MT tests/CMakeFiles/test-basic.dir/basic.cc.o -MF tests/CMakeFiles/test-basic.dir/basic.cc.o.d -o tests/CMakeFiles/test-basic.dir/basic.cc.o -c /home/runner/work/cmdr-cxx/cmdr-cxx/tests/basic.cc
In file included from ../libs/cmdr11/include/cmdr11/cmdr_app.hh:20,
from ../libs/cmdr11/include/cmdr11/cmdr11.hh:98,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_opts.hh: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:25:14: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
25 | return [=](cmd &c) {
| ^
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:25:14: note: add explicit ‘this’ or ‘*this’ capture
../libs/cmdr11/include/cmdr11/cmdr_opts.hh: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:128:14: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
128 | return [=](cmd &c) {
| ^
../libs/cmdr11/include/cmdr11/cmdr_opts.hh:128:14: note: add explicit ‘this’ or ‘*this’ capture
In file included from ../libs/cmdr11/include/cmdr11/cmdr11.hh:105,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:193:31: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
193 | [=](opt::types::parsing_context &pc, int argc, char *argv[]) -> int {
| ^
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:193:31: note: add explicit ‘this’ or ‘*this’ capture
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:203:15: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
203 | walk_args([=](opt::arg &a) {
| ^
../libs/cmdr11/include/cmdr11/cmdr_app_inl.h:203:15: note: add explicit ‘this’ or ‘*this’ capture
In file included from ../libs/cmdr11/include/cmdr11/cmdr11.hh:108,
from ../libs/cmdr11/include/cmdr-cxx.hh:8,
from ../tests/basic.cc:11:
../libs/cmdr11/include/cmdr11/cmdr_impl.hh: In lambda function:
../libs/cmdr11/include/cmdr11/cmdr_impl.hh:850:29: error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]
850 | post_runner post_runner([=]() {
| ^
../libs/cmdr11/include/cmdr11/cmdr_impl.hh:850:29: note: add explicit ‘this’ or ‘*this’ capture
cc1plus: all warnings being treated as errors
[31/47 1.2/sec] /home/runner/work/cmdr-cxx/cmdr-cxx/ccache /usr/bin/g++-10 -DCMDR_ENABLE_ASSERTIONS=1 -DCMDR_ENABLE_PRECONDITION_CHECKS=1 -DCMDR_ENABLE_WRAPPER=1 -DCMDR_TEST_THREAD_POOL_DBGOUT=1 -DCMDR_UNIT_TEST=1 -I/home/runner/work/cmdr-cxx/cmdr-cxx/build/generated -I/home/runner/work/cmdr-cxx/cmdr-cxx -I/home/runner/work/cmdr-cxx/cmdr-cxx/libs/cmdr11/include -g -std=c++2a -fPIE -Wall -Wextra -pedantic -Werror -Wno-unknown-pragmas -D_DEBUG -DDEBUG=1 -Wshadow -DCMDR_CXX11_UNIT_TEST=1 -MD -MT tests/CMakeFiles/test-inplace-constructions.dir/inplace_constructions.cc.o -MF tests/CMakeFiles/test-inplace-constructions.dir/inplace_constructions.cc.o.d -o tests/CMakeFiles/test-inplace-constructions.dir/inplace_constructions.cc.o -c /home/runner/work/cmdr-cxx/cmdr-cxx/tests/inplace_constructions.cc
[32/47 1.0/sec] /home/runn
|
Ubuntu Latest GCC
Process completed with exit code 1.
|
Windows Latest MSVC
FAILED: tests/CMakeFiles/test-visit-any.dir/visit_any.cc.obj
D:\a\cmdr-cxx\cmdr-cxx\ccache.exe C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe /TP -DCMDR_ENABLE_ASSERTIONS=1 -DCMDR_ENABLE_PRECONDITION_CHECKS=1 -DCMDR_ENABLE_WRAPPER=1 -DCMDR_TEST_THREAD_POOL_DBGOUT=0 -DCMDR_UNIT_TEST=0 -ID:\a\cmdr-cxx\cmdr-cxx\build\generated -ID:\a\cmdr-cxx\cmdr-cxx -ID:\a\cmdr-cxx\cmdr-cxx\libs\cmdr11\include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++20 /W4 /WX /D_CRT_SECURE_NO_WARNINGS -DNDEBUG=1 /utf-8 /DCMDR_CXX11_UNIT_TEST=1 /wd4800 /showIncludes /Fotests\CMakeFiles\test-visit-any.dir\visit_any.cc.obj /Fdtests\CMakeFiles\test-visit-any.dir\ /FS -c D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.cc
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.hh(80): error C2220: the following warning is treated as an error
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.hh(80): warning C4100: 'a': unreferenced formal parameter
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.hh(80): note: the template instantiation context (the oldest one first) is
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.cc(37): note: see reference to class template instantiation 'study::streamer_any<std::ostream>' being compiled
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.hh(59): note: while compiling class template member function 'study::streamer_any<std::ostream>::R &study::streamer_any<std::ostream>::any_visitors(void)'
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.hh(89): note: see the first reference to 'study::streamer_any<std::ostream>::any_visitors' in 'study::streamer_any<std::ostream>::process'
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.cc(41): note: see the first reference to 'study::streamer_any<std::ostream>::process' in 'test_streamer_any'
D:\a\cmdr-cxx\cmdr-cxx\tests\visit_any.hh(61): note: see reference to function template instantiation 'std::pair<const std::type_index,std::function<void (std::ostream &,const std::any &)>> study::streamer_any<std::ostream>::to_any_visitor<void,study::streamer_any<std::ostream>::any_visitors::<lambda_1>>(const F &)' being compiled
with
[
F=study::streamer_any<std::ostream>::any_visitors::<lambda_1>
]
Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34120 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9025 : overriding '/W3' with '/W4'
[14/47 0.7/sec] D:\a\cmdr-cxx\cmdr-cxx\ccache.exe C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe /TP -DCMDR_ENABLE_ASSERTIONS=1 -DCMDR_ENABLE_PRECONDITION_CHECKS=1 -DCMDR_ENABLE_WRAPPER=1 -DCMDR_TEST_THREAD_POOL_DBGOUT=0 -DCMDR_UNIT_TEST=0 -ID:\a\cmdr-cxx\cmdr-cxx\build\generated -ID:\a\cmdr-cxx\cmdr-cxx -ID:\a\cmdr-cxx\cmdr-cxx\libs\cmdr11\include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++20 /W4 /WX /D_CRT_SECURE_NO_WARNINGS -DNDEBUG=1 /utf-8 /DCMDR_CXX11_UNIT_TEST=1 /wd4800 /showIncludes /Fotests\CMakeFiles\test-chrono.dir\chrono_test.cc.obj /Fdtests\CMakeFiles\test-chrono.dir\ /FS -c D:\a\cmdr-cxx\cmdr-cxx\tests\chrono_test.cc
FAILED: tests/CMakeFiles/test-chrono.dir/chrono_test.cc.obj
D:\a\cmdr-cxx\cmdr-cxx\ccache.exe C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe /TP -DCMDR_ENABLE_ASSERTIONS=1 -DCMDR_ENABLE_PRECONDITION_CHECKS=1 -DCMDR_ENABLE_WRAPPER=1 -DCMDR_TEST_THREAD_POOL_DBGOUT=0 -DCMDR_UNIT_TEST=0 -ID:\a\cmdr-cxx\cmdr-cxx\build\generated -ID:\a\cmdr-cxx\cmdr-cxx -ID:\a\cmdr-cxx\cmdr-cxx\libs\cmdr11\include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++20 /W4 /WX /D_CRT_SECURE_NO_WARNINGS -DNDEBUG=1 /utf-8 /DCMDR_CXX11_UNIT_TEST=1 /wd4800 /showIncludes /Fotests\CMakeFiles\test-chrono.dir\chrono_test.cc.obj /Fdtests\CMakeFiles\test-chrono.dir\ /FS -c D:\a\cmdr-cxx\cmdr-cxx\tests\chrono_test.cc
D:\a\cmdr-cxx\cmdr-cxx\tests\chrono_test.cc(137): error C2593: 'operator <<' is ambiguous
D:\a\cmdr-cxx\cmdr-cxx\libs\cmdr11\include\cmdr11/cmdr_chrono.hh(884): note: could be 'std::ostream &operator <<<std::chrono::system_clock,std::chrono::duration<std::chrono::system_clock::rep,std:
|
Windows Latest MSVC
Process completed with exit code 1.
|
Ubuntu Latest GCC
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
macOS Latest Clang
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
macOS Latest Clang
p7zip 17.05 is already installed and up-to-date.
To reinstall 17.05, run:
brew reinstall p7zip
|
Windows Latest MSVC
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
macOS.7z
|
91.3 KB |
|