Bug 218293 - List of warnings under windows compilation
Summary: List of warnings under windows compilation
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 2.0.0
Platform: unspecified Microsoft Windows
: NOR wishlist
Target Milestone: 2.0.0
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 16:31 UTC by Grégoire Verlut
Modified: 2010-11-12 10:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grégoire Verlut 2009-12-11 16:31:59 UTC
Version:           2.0.0_devel (using unspecified)
Compiler:          GNU make port to mingw32   Version: 3.81 + patches from Eli Zaretskii 
OS:                Windows 32-Bit

A list of warnings that I get during compilation under QT Creator 1.2.1 with the GNU make port to mingw32 Version: 3.81.

I don't know how critical they are, but a project without warning is cleaner ;)

Sorry that I also do not provide a solution to them. For all the casting problem, an explicit casting should reach.

In file included from datamatrix.h:20,
from datamatrix.cpp:24:
dataprimitive.h:31: warning: `class Kst::DataPrimitive' has virtual functions but non-virtual destructor


lex.yy.c: In function `int yy_get_next_buffer()':
lex.yy.c:1174: warning: comparison between signed and unsigned integer expressions
lex.yy.c: At global scope:
lex.yy.c:1266: warning: 'void yyunput(int, char*)' defined but not used

scalarselector.cpp: In member function `void Kst::ScalarSelector::setDefaultValue(double)':
scalarselector.cpp:68: warning: passing NULL used for non-pointer converting 1 of `QVariant qVariantFromValue(const T&) [with T = int]'


	
uic markerstab.ui
Warning: name gridLayout is already used
uic powerspectrumtab.ui
'' isn't a valid widget

applicationsettings.cpp: In member function `int Kst::ApplicationSettings::referenceViewWidth() const':
applicationsettings.cpp:117: warning: converting to `int' from `double'
applicationsettings.cpp: In member function `int Kst::ApplicationSettings::referenceViewHeight() const':
applicationsettings.cpp:138: warning: converting to `int' from `double'

changedatasampledialog.cpp: In member function `void Kst::ChangeDataSampleDialog::apply()':
changedatasampledialog.cpp:200: warning: passing `qreal' for converting 1 of `void Kst::DataVector::changeFrames(int, int, int, bool, bool)'
changedatasampledialog.cpp:200: warning: passing `qreal' for converting 2 of `void Kst::DataVector::changeFrames(int, int, int, bool, bool)'

circleitem.cpp: In member function `virtual void Kst::CircleItem::creationPolygonChanged(Kst::View::CreationEvent)':
circleitem.cpp:65: warning: passing `qreal' for converting 1 of `int abs(int)'
circleitem.cpp:65: warning: passing `qreal' for converting 1 of `int abs(int)'
circleitem.cpp:65: warning: passing `qreal' for converting 1 of `int abs(int)'
circleitem.cpp:65: warning: passing `qreal' for converting 1 of `int abs(int)'

datawizard.cpp: In member function `void Kst::DataWizard::finished()':
datawizard.cpp:597: warning: converting to `long unsigned int' from `double'
datawizard.cpp:599: warning: converting to `long unsigned int' from `const double'
datawizard.cpp:616: warning: converting to `long unsigned int' from `double'
datawizard.cpp:618: warning: converting to `long unsigned int' from `double'
datawizard.cpp:665: warning: passing `double' for converting 3 of `void Kst::DataVector::change(Kst::DataSourcePtr, const QString&, int, int, int, bool, bool)'
datawizard.cpp:665: warning: passing `double' for converting 4 of `void Kst::DataVector::change(Kst::DataSourcePtr, const QString&, int, int, int, bool, bool)'
datawizard.cpp:691: warning: passing `double' for converting 3 of `void Kst::DataVector::change(Kst::DataSourcePtr, const QString&, int, int, int, bool, bool)'
datawizard.cpp:691: warning: passing `double' for converting 4 of `void Kst::DataVector::change(Kst::DataSourcePtr, const QString&, int, int, int, bool, bool)'

gridlayouthelper.cpp: In static member function `static Kst::Grid* Kst::Grid::buildGrid(const QList<Kst::ViewItem*>&, int)':
gridlayouthelper.cpp:205: warning: converting to `int' from `double'
gridlayouthelper.cpp:219: warning: converting to `int' from `qreal'

legenditem.cpp: In member function `virtual void Kst::LegendItem::paint(QPainter*)':
legenditem.cpp:102: warning: converting to `int' from `qreal'
legenditem.cpp:103: warning: converting to `int' from `qreal'
compiling legenditemdialog.cpp

plotaxis.cpp: In member function `void Kst::PlotAxis::computeLogTicks(QList<double>*, QList<double>*, QMap<qreal, QString>*, qreal, qreal, Kst::PlotAxis::MajorTickMode)':
plotaxis.cpp:678: warning: converting to `int' from `double'
plotaxis.cpp:679: warning: converting to `int' from `double'
plotaxis.cpp:681: warning: converting to `int' from `qreal'
plotaxis.cpp: In member function `void Kst::PlotAxis::validateDrawingRegion(QPainter*)':
plotaxis.cpp:774: warning: passing `qreal' for converting 1 of `Kst::PlotAxis::MajorTickMode Kst::PlotAxis::convertToMajorTickMode(int, Kst::PlotAxis::MajorTickMode)'

plotitem.cpp: In member function `void Kst::PlotItem::applyDefaults()':
plotitem.cpp:262: warning: passing `double' for converting 1 of `void Kst::PlotAxis::setAxisLabelRotation(int)'
plotitem.cpp:292: warning: passing `double' for converting 1 of `void Kst::PlotAxis::setAxisLabelRotation(int)'
plotitem.cpp: In member function `void Kst::PlotItem::updatePlotPixmap()':
plotitem.cpp:816: warning: passing `qreal' for converting 1 of `QPixmap::QPixmap(int, int)'
plotitem.cpp:816: warning: passing `qreal' for converting 2 of `QPixmap::QPixmap(int, int)'

plotrenderitem.cpp: In member function `void Kst::PlotRenderItem::paintReferencePoint(QPainter*)':
plotrenderitem.cpp:284: warning: passing `qreal' for converting 3 of `void Kst::CurvePointSymbol::draw(int, QPainter*, int, int, int, int)'
plotrenderitem.cpp:284: warning: passing `qreal' for converting 4 of `void Kst::CurvePointSymbol::draw(int, QPainter*, int, int, int, int)'
plotrenderitem.cpp: In member function `void Kst::PlotRenderItem::paintHighlightPoint(QPainter*)':
plotrenderitem.cpp:301: warning: passing `qreal' for converting 1 of `void QPainter::drawEllipse(int, int, int, int)'
plotrenderitem.cpp:301: warning: passing `qreal' for converting 2 of `void QPainter::drawEllipse(int, int, int, int)

vectordialog.cpp: In member function `virtual Kst::ObjectPtr Kst::VectorDialog::editExistingDataObject() const':
vectordialog.cpp:434: warning: converting to `int' from `qreal'
vectordialog.cpp:435: warning: converting to `int' from `qreal'
vectordialog.cpp:439: warning: converting to `int' from `qreal'
vectordialog.cpp:440: warning: converting to `int' from `qreal'
vectordialog.cpp:491: warning: passing `double' for converting 3 of `void Kst::GeneratedVector::changeRange(double, double, int)'

view.cpp: In member function `void Kst::View::updateFont()':
view.cpp:529: warning: passing `qreal' for converting 1 of `void QFont::setPixelSize(int)'
view.cpp: In member function `QFont Kst::View::defaultFont(double) const':
view.cpp:545: warning: passing `qreal' for converting 1 of `void QFont::setPixelSize(int)'

viewgridlayout.cpp: In static member function `static void Kst::ViewGridLayout::standardizePlotMargins(Kst::ViewItem*, QPainter*)':
viewgridlayout.cpp:254: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:255: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:257: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:258: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:260: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:261: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:263: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:264: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:285: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:286: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:287: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp:288: warning: passing `double' for converting 1 of `T& QMap<Key, T>::operator[](const Key&) [with Key = int, T = qreal]'
viewgridlayout.cpp: In member function `void Kst::ViewGridLayout::shareAxis(QPainter*, bool)':
viewgridlayout.cpp:419: warning: converting to `int' from `qreal'
viewgridlayout.cpp:422: warning: converting to `int' from `qreal'
viewgridlayout.cpp:425: warning: converting to `int' from `qreal'
viewgridlayout.cpp:428: warning: converting to `int' from `qreal'
viewgridlayout.cpp:435: warning: converting to `int' from `qreal'
viewgridlayout.cpp:438: warning: converting to `int' from `qreal'
viewgridlayout.cpp:492: warning: converting to `int' from `qreal'
viewgridlayout.cpp:493: warning: converting to `int' from `qreal'
viewgridlayout.cpp:499: warning: converting to `int' from `qreal'
viewgridlayout.cpp:500: warning: converting to `int' from `qreal'
viewgridlayout.cpp:507: warning: converting to `int' from `qreal'
viewgridlayout.cpp:508: warning: converting to `int' from `qreal'

d2asc.cpp: In function `int qMain(int, char**)':
d2asc.cpp:134: warning: control reaches end of non-void function
Comment 1 Peter Kümmel 2010-04-29 14:32:22 UTC
SVN commit 1120605 by kuemmel:

remove GCC/MSVC warnings

CCBUG: 218293


 M  +11 -3     escan.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1120605
Comment 2 Peter Kümmel 2010-04-29 20:11:53 UTC
SVN commit 1120702 by kuemmel:

no warnings with gcc 4.4

BUG: 218293 


 M  +1 -1      dataobjectplugin.pri  
 M  +1 -1      datasourceplugin.pri  
 M  +1 -1      kst.pri  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1120702
Comment 3 Peter Kümmel 2010-08-14 12:14:30 UTC
Change version from 2.0.0_devel to 2.0.0 to simplify version numbering.
Comment 4 Peter Kümmel 2010-11-12 10:42:16 UTC
These bugs are solved with 2.0.0