| Summary: | compiler warnings with LabPlot 2.4.0 in AUR | ||
|---|---|---|---|
| Product: | [Applications] LabPlot2 | Reporter: | uwestoehr <uwestoehr> |
| Component: | general | Assignee: | Alexander Semke <alexander.semke> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 2.4.0 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 2.5 | |
| Sentry Crash Report: | |||
Grabbing LabPlot from AUR (Arch Linux) the compilaton issues some warnings that might be fixable. here are the first 4 of them: 61%] Building CXX object src/CMakeFiles/labplot2.dir/backend/worksheet/plots/cartesian/XYCurve.cpp.o /tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/worksheet/plots/cartesian/XYCurve.cpp: In member function ‘void XYCurvePrivate::updateLines()’: /tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/worksheet/plots/cartesian/XYCurve.cpp:1035:17: warning: variable length array ‘x’ is used [-Wvla] double x[count], y[count]; ^ /tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/worksheet/plots/cartesian/XYCurve.cpp:1035:28: warning: variable length array ‘y’ is used [-Wvla] double x[count], y[count]; ^ [ 63%] Building CXX object src/CMakeFiles/labplot2.dir/backend/worksheet/plots/cartesian/XYFitCurve.cpp.o /tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/worksheet/plots/cartesian/XYFitCurve.cpp: In function ‘int func_df(const gsl_vector*, void*, gsl_matrix*)’: /tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/worksheet/plots/cartesian/XYFitCurve.cpp:404:19: warning: variable length array ‘a’ is used [-Wvla] double a[degree]; ^ /tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/worksheet/plots/cartesian/XYFitCurve.cpp:405:19: warning: variable length array ‘b’ is used [-Wvla] double b[degree]; ^