Skip to content

Commit

Permalink
Remove const volatile qualifier on return type in test
Browse files Browse the repository at this point in the history
Fixes warning by Clang:

   warning: 'const volatile' type qualifiers on return type have no effect
      [-Wignored-qualifiers]
    const volatile unsigned long long * const volatile func_KVPKVull() {...}
                                        ^~~~~~~~~~~~~~~

Change-Id: Ia4aae6521c84f4a18d92ad5035af5b247d283140
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
torarnv committed Aug 4, 2020
1 parent d1d4ea5 commit 561da77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/auto/corelib/global/qlogging/tst_qlogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class TestClass1
char *func_Pchar() { ADD("TestClass1::func_Pchar"); return 0; }
const char *func_KPchar() { ADD("TestClass1::func_KPchar"); return 0; }
const volatile char *func_VKPchar() { ADD("TestClass1::func_VKPchar"); return 0; }
const volatile unsigned long long * const volatile func_KVPKVull() { ADD("TestClass1::func_KVPKVull"); return 0; }
const volatile unsigned long long * func_KVPull() { ADD("TestClass1::func_KVPull"); return 0; }
const void * const volatile *func_KPKVvoid() { ADD("TestClass1::func_KPKVvoid"); return 0; }

QList<int> func_ai() { ADD("TestClass1::func_ai"); return QList<int>(); }
Expand Down Expand Up @@ -248,7 +248,7 @@ class TestClass1
func_Pchar();
func_KPchar();
func_VKPchar();
func_KVPKVull();
func_KVPull();
func_KPKVvoid();
func_ai();
func_aptr();
Expand Down Expand Up @@ -455,11 +455,11 @@ void tst_qmessagehandler::cleanupFuncinfo_data()
<< "TestClass1::func_VKPchar";

QTest::newRow("msvc_13")
<< "volatile const unsigned __int64 *volatile const __thiscall TestClass1::func_KVPKVull(void)"
<< "TestClass1::func_KVPKVull";
<< "volatile const unsigned __int64 *__thiscall TestClass1::func_KVPull(void)"
<< "TestClass1::func_KVPull";
QTest::newRow("gcc_13")
<< "const volatile long long unsigned int* const volatile TestClass1::func_KVPKVull()"
<< "TestClass1::func_KVPKVull";
<< "const volatile long long unsigned int* TestClass1::func_KVPull()"
<< "TestClass1::func_KVPull";

QTest::newRow("msvc_14")
<< "const void *volatile const *__thiscall TestClass1::func_KPKVvoid(void)"
Expand Down

0 comments on commit 561da77

Please sign in to comment.