diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-12-13 13:08:40 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-12-14 04:57:40 +0000 |
commit | f92cfab225757084bd89638cd83dc7734f84b5e2 (patch) | |
tree | 143ba0f936ec9681a48c734fb0492c251d86c40d /src | |
parent | ab0cc3055d3d1f0faa98f96a7e8ae58b6ef6461a (diff) |
Silence warning about non-void function without return value
Q_UNREACHABLE() isn't enough for some compilers, especially if it
expands to nothing.
warning #1011: missing return statement at end of non-void function "fetchPixel<bpp>(const uchar={unsigned char} *, int) [with bpp=QPixelLayout::BPPNone]"
Change-Id: I3e3f0326f7234a26acf5fffd148fecf0b72ea7e0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qdrawhelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index ff7c8dfc28..af32811d34 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -843,6 +843,7 @@ template <QPixelLayout::BPP bpp> static uint QT_FASTCALL fetchPixel(const uchar *, int) { Q_UNREACHABLE(); + return 0; } template <> |