[Kst] [Bug 218293] New: List of warnings under windows compilation

Grégoire Verlut gregoire.verlut at eurocopter.com
Fri Dec 11 16:32:01 CET 2009


https://bugs.kde.org/show_bug.cgi?id=218293

           Summary: List of warnings under windows compilation
           Product: kst
           Version: 2.0.0_devel
          Platform: unspecified
        OS/Version: MS Windows
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kst at kde.org
        ReportedBy: gregoire.verlut at eurocopter.com


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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kst mailing list