Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused lambda captures in stream-pool/TSP sample #378

Open
Insomniac-Ossifrage opened this issue Apr 14, 2021 · 0 comments
Open

Unused lambda captures in stream-pool/TSP sample #378

Insomniac-Ossifrage opened this issue Apr 14, 2021 · 0 comments

Comments

@Insomniac-Ossifrage
Copy link

Compiling the sample 'tsp_problem' using Clang 10.0.0 generates the following error:

/home/yago/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/211.6693.114/bin/cmake/linux/bin/cmake --build /home/yago/Desktop/grppi/cmake-build-d-clang --target tsp_problem -- -j 25
[ 50%] Building CXX object samples/stream-pool/TSP/CMakeFiles/tsp_problem.dir/main.cpp.o
/home/yago/Desktop/grppi/samples/stream-pool/TSP/main.cpp:108:7: error: lambda capture 'problem' is not used [-Werror,-Wunused-lambda-capture]
    [&problem, &count, num_cities] (auto )
     ~^~~~~~~~
/home/yago/Desktop/grppi/samples/stream-pool/TSP/main.cpp:108:24: error: lambda capture 'num_cities' is not used [-Werror,-Wunused-lambda-capture]
    [&problem, &count, num_cities] (auto )
                     ~~^~~~~~~~~~
2 errors generated.
make[3]: *** [samples/stream-pool/TSP/CMakeFiles/tsp_problem.dir/build.make:82: samples/stream-pool/TSP/CMakeFiles/tsp_problem.dir/main.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:1322: samples/stream-pool/TSP/CMakeFiles/tsp_problem.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1329: samples/stream-pool/TSP/CMakeFiles/tsp_problem.dir/rule] Error 2
make: *** [Makefile:415: tsp_problem] Error 2
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

No branches or pull requests

1 participant