chrberger / libcluon

libcluon is a small and efficient, single-file and header-only library written in modern C++ to power microservices.
Mozilla Public License 2.0
100 stars 13 forks source link

Compiler warning: -Wreturn-type (v0.0.140) #11

Closed freol35241 closed 2 years ago

freol35241 commented 3 years ago

Using gcc 9.3.0 on Ubuntu 20.04 (wsl2) and cluon-complete.hpp from the latest release (v0.0.140). The compiler gives me the following warning related to a switch statement without default case in a lambda function:

[build] /build/cluon-complete.cpp: In lambda function:
[build] /build/cluon-complete.cpp:3692:5: warning: control reaches end of non-void function [-Wreturn-type]
[build]  3692 |     };
[build]       |     ^
chrberger commented 2 years ago

Thanks for the feedback; the warning is issued from an externally sourced 3rd party library: https://github.com/chrberger/libcluon/blob/master/libcluon/thirdparty/cpp-peglib/peglib.h#L3128-L3143