Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / libwps / libwps.gcc.warnings.patch
blobd9692d4b2d934bd1511e985a3f219e403f27e450
1 warning: passing ‘libwps::Justification’ chooses ‘int’ over ‘unsigned int’
3 diff -ru wps.old/src/lib/WPSParagraph.cpp wps/src/lib/WPSParagraph.cpp
4 --- wps.old/src/lib/WPSParagraph.cpp 2012-10-29 14:44:09.135977333 +0100
5 +++ wps/src/lib/WPSParagraph.cpp 2012-10-29 14:44:13.649981497 +0100
6 @@ -137,7 +137,8 @@
7 o << "just=fullAllLines, ";
8 break;
9 default:
10 - o << "just=" << pp.m_justify << ", ";
11 + assert(false); // unhandled Justification enum value
12 + o << "just=" << static_cast<unsigned>(pp.m_justify) << ", ";
13 break;