Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
5.4.0
-
None
Description
On big-endian ppc64 qt fails to build:
image/qimage_conversions.cpp:2257:9: error: expected ‘}’ before numeric constant
0, 0, 0, 0
^
image/qimage_conversions.cpp:2257:9: error: expected ‘}’ before numeric constant
image/qimage_conversions.cpp:2257:9: error: expected ‘,’ or ‘;’ before numeric constant
image/qimage_conversions.cpp:2258:5: error: expected declaration before ‘}’ token
}, // Format_RGBA8888
That happens because two commas are missing in
./qtbase/src/gui/image/qimage_conversions.cpp
2250 #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
2251 0,
2252 convert_ARGB_to_ARGB_PM,
2253 #else
2254 0,
2255 0
2256 #endif
2257 0, 0, 0, 0
2258 }, // Format_RGBA8888
2259
2260
, // Format_RGBA8888_Premultiplied
2288
As you can see there are two missing commas after the zeros above the #endifs.
Attachments
Issue Links
- duplicates
-
QTBUG-44265 gui/image/qimage_conversions.cpp:2257:9: error: expected ‘}’ before numeric constant
- Closed