Bug 386372 - compiler warnings with LabPlot 2.4.0 in AUR
Summary: compiler warnings with LabPlot 2.4.0 in AUR
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.4.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-31 01:48 UTC by uwestoehr
Modified: 2017-10-31 08:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 2.5
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description uwestoehr 2017-10-31 01:48:01 UTC
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];
                   ^