From 3da9cff84599c613a440e320e649dd957e89ecfb Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Sat, 4 Jul 2020 05:28:39 +0200 Subject: Avoid warnings regarding bit-field signedness Up to (including) C++11, integral bitfields of unspecified signedness have implementation dependent signedness. Detected by LGTM.com static analyzer. Pick-to: 5.15 Change-Id: Ibaa0fdc6e443495a3cd40330c4573c9cc6ccdf5b Reviewed-by: Volker Hilsheimer --- src/gui/text/qfont_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/text/qfont_p.h') diff --git a/src/gui/text/qfont_p.h b/src/gui/text/qfont_p.h index 5d8f0daacd..d2d240b134 100644 --- a/src/gui/text/qfont_p.h +++ b/src/gui/text/qfont_p.h @@ -97,7 +97,7 @@ struct QFontDef uint hintingPreference : 2; uint ignorePitch : 1; uint fixedPitchComputed : 1; // for Mac OS X only - int reserved : 14; // for future extensions + uint reserved : 14; // for future extensions bool exactMatch(const QFontDef &other) const; bool operator==(const QFontDef &other) const -- cgit v1.2.3