[Qt-interest] Lots of warning with QtEmbedded-4.5 and gcc-3.4.3
Abdelrazak Younes
younes.abdel at gmail.com
Thu Jan 29 11:49:44 CET 2009
Hello,
I am trying to compile latest QtEmbedded-4.5 with montavista gcc-3.4.3
and I get a lot of warning (ex: see below). Are these safe to ignore or
is a newer gcc required?
I configured Qt with the following:
./configure -embedded arm -xplatform mkspecs/qws/linux-arm-g++
-little-endian -prefix
/home/younes/devel/arm/davinci/filesys/usr/local/Qt
-L/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/lib
-I/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/include -little-endian
I had to create symlinks for arm_v5t_le-* to arm-linux-* if that is
important.
Thanks in advance for any hint,
Abdel.
gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)
../../include/QtCore/../../src/corelib/tools/qhash.h: In member function
`typename QHash<K, V>::Node** QHash<K, V>::findNode(const Key&, uint*)
const [with Key = QModelIndex, T = QPersistentModelIndexData*]':
../../include/QtCore/../../src/corelib/tools/qhash.h:839: instantiated
from `typename QHash<K, V>::iterator QHash<K, V>::find(const Key&) [with
Key = QModelIndex, T = QPersistentModelIndexData*]'
../../include/QtCore/private/../../../src/corelib/kernel/qabstractitemmodel_p.h:114:
instantiated from here
../../include/QtCore/../../src/corelib/tools/qhash.h:861: warning:
dereferencing type-punned pointer will break strict-aliasing rules
../../include/QtCore/../../src/corelib/tools/qhash.h: In member function
`typename QHash<K, V>::Node** QHash<K, V>::findNode(const Key&, uint*)
const [with Key = QPersistentModelIndex, T = QHashDummyValue]':
../../include/QtCore/../../src/corelib/tools/qhash.h:845: instantiated
from `bool QHash<K, V>::contains(const Key&) const [with Key =
QPersistentModelIndex, T = QHashDummyValue]'
../../include/QtCore/../../src/corelib/tools/qset.h:81: instantiated
from `bool QSet<V>::contains(const T&) const [with T =
QPersistentModelIndex]'
../../include/QtGui/private/../../../src/gui/itemviews/qtreeview_p.h:180:
instantiated from here
../../include/QtCore/../../src/corelib/tools/qhash.h:861: warning:
dereferencing type-punned pointer will break strict-aliasing rules
../../include/QtCore/../../src/corelib/tools/qhash.h: In member function
`typename QHash<K, V>::Node** QHash<K, V>::findNode(const Key&, uint*)
const [with Key = QWidget*, T = QHashDummyValue]':
../../include/QtCore/../../src/corelib/tools/qhash.h:845: instantiated
from `bool QHash<K, V>::contains(const Key&) const [with Key = QWidget*,
T = QHashDummyValue]'
../../include/QtCore/../../src/corelib/tools/qset.h:81: instantiated
from `bool QSet<V>::contains(const T&) const [with T = QWidget*]'
itemviews/qtreeview.cpp:2697: instantiated from here
../../include/QtCore/../../src/corelib/tools/qhash.h:861: warning:
dereferencing type-punned pointer will break strict-aliasing rules
More information about the Qt-interest-old
mailing list