tst_qdatetime: Fix compiler warning about uninitialized variable.
warning: 'typemsg1' may be used uninitialized in this function [-Wmaybe-uninitialized] Change-Id: Ie68d279eccb003a2ca5a0116eea336cbc8776660 Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
This commit is contained in:
parent
3c50f459c6
commit
f13d8163ec
@ -188,10 +188,10 @@ tst_QDateTime::tst_QDateTime()
|
|||||||
void tst_QDateTime::initTestCase()
|
void tst_QDateTime::initTestCase()
|
||||||
{
|
{
|
||||||
// Never construct a message like this in an i18n context...
|
// Never construct a message like this in an i18n context...
|
||||||
const char *typemsg1, *typemsg2 = "and therefore not";
|
const char *typemsg1 = "exactly";
|
||||||
|
const char *typemsg2 = "and therefore not";
|
||||||
switch (localTimeType) {
|
switch (localTimeType) {
|
||||||
case LocalTimeIsUtc:
|
case LocalTimeIsUtc:
|
||||||
typemsg1 = "exactly";
|
|
||||||
break;
|
break;
|
||||||
case LocalTimeBehindUtc:
|
case LocalTimeBehindUtc:
|
||||||
typemsg1 = "behind";
|
typemsg1 = "behind";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user