Go to file
Jędrzej Nowacki fb0f58f50f Fix conditional jump based on an uninitialized variable.
Valgrind warns about the jump in qfontconfigdatabase.cpp:522 based on
uint QFondDef::hintingPreference:2 property. Surprising thing is that
the property is initialized in the default constructor, so there should
not be an issue.

The warning disappear if the property is _not_ placed on a boundary of a
two words, or if bit field is fully initialized. So I suspect that only
one bit of the two was initialized properly.

I decide to implement both solutions because of a potential minor
performance improvement, during reading the property.

I still fail to say why the value was uninitialized, I believe that this
patch simply workarounds gcc bug or valgrind bug.

Change-Id: I2e87738f66a435ef6e30b3d2db6baa73da025426
Reviewed-by: Jiang Jiang <gzjjgod@gmail.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2012-11-03 11:20:26 +01:00
bin Rename the syncqt -qtdir to -mkspecsdir 2012-10-19 00:44:54 +02:00
config.tests Made xcb plugin work when the GLX extension is not present. 2012-10-19 18:11:06 +02:00
dist Do the actual removal of the Soft Keys API and related code 2012-10-29 20:27:27 +01:00
doc CONFIG+=uitools is deprecated. Use QT+=uitools instead 2012-10-31 19:56:55 +01:00
examples Do the actual removal of the Soft Keys API and related code 2012-10-29 20:27:27 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs don't unset TARGET_VERSION_EXT 2012-11-02 18:07:35 +01:00
qmake do not add DEPENDPATH to VPATH 2012-11-02 18:07:35 +01:00
src Fix conditional jump based on an uninitialized variable. 2012-11-03 11:20:26 +01:00
tests Improve QByteDataBuffer::read() performance with partial reads 2012-11-03 00:24:37 +01:00
tools move invariant CONFIG flags out of the configures 2012-11-02 18:07:35 +01:00
util CONFIG+=uitools is deprecated. Use QT+=uitools instead 2012-10-31 19:56:55 +01:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Drop Symbian Carbide settings from .gitignore 2012-10-26 11:53:06 +02:00
.qmake.conf add a .qmake.conf file which load()s qt_build_config 2012-10-18 17:42:40 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure move invariant CONFIG flags out of the configures 2012-11-02 18:07:35 +01:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL fix links in INSTALL 2012-10-10 08:45:22 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro rewrite default spec handling 2012-11-01 20:17:57 +01:00
sync.profile Exclude ANGLE headers from syncqt-checks. 2012-11-02 12:16:49 +01:00