You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I can't reproduce that warning. The above example as well as examples/tests/myfunc1.cpp compiles for me without any warnings. Let me know if you have another example or which compiler causes this.
I have an older version of spline.h (haven't checked yet the difference to the latest version),
and there I too get such a funny warning (btw, the line numbers below can be different due to additions of dbg code and comments):
$ g++ -O2 -Wall -Wextra -std=c++20 -o spline_demo.exe spline_demo.cpp
In file included from spline_demo.cpp:13:
spline.h:277:6: warning: ‘void {anonymous}::tk::spline::set_boundary({anonymous}::tk::spline::bd_type, double, {anonymous}::tk::spline::bd_type, double, bool)’ defined but not used [-Wunused-function]
277 | void spline::set_boundary(spline::bd_type left, double left_value,
| ^~~~~~
OS is Linux and Compiler is g++ version this below:
$ g++ --version
g++ (Debian 10.2.1-6) 10.2.1 20210110
...
Usage of spline as a member of class creates warning.
#include "spline/spline.h"
class CLASS {
tk::spline spline_;
}
The text was updated successfully, but these errors were encountered: