Bug 386374 - part 2: compiler warnings with LabPlot 2.4.0 in AUR
Summary: part 2: compiler warnings with LabPlot 2.4.0 in AUR
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: 2.4.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-31 01:56 UTC by Uwe Stöhr
Modified: 2017-11-05 16:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Stöhr 2017-10-31 01:56:44 UTC
Grabbing LabPlot from AUR (Arch Linux) the compilation issues some warnings that might be fixable. Here are the next ones:

 48%] Building CXX object src/CMakeFiles/labplot2.dir/backend/datasources/filters/FITSFilter.cpp.o
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp: In member function ‘void FITSFilterPrivate::writeCHDU(const QString&, AbstractDataSource*)’:
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:722:29: warning: variable length array ‘columnNames’ is used [-Wvla]
    char* columnNames[tfields];
                             ^
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:723:23: warning: variable length array ‘tform’ is used [-Wvla]
    char* tform[tfields];
                       ^
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:724:23: warning: variable length array ‘tunit’ is used [-Wvla]
    char* tunit[tfields];
                       ^
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:843:29: warning: variable length array ‘columnNames’ is used [-Wvla]
    char* columnNames[tfields];
                             ^
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:844:23: warning: variable length array ‘tform’ is used [-Wvla]
    char* tform[tfields];
                       ^
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:845:23: warning: variable length array ‘tunit’ is used [-Wvla]
    char* tunit[tfields];
                       ^
/tmp/pamac-build-usti/labplot-kf5/src/labplot-2.4.0-kf5/src/backend/datasources/filters/FITSFilter.cpp:944:22: warning: variable length array ‘column’ is used [-Wvla]
    char* column[nrows];
                      ^