diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-04-06 13:13:59 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-04-07 20:32:26 +0200 |
commit | 06220aac8930b538a3481561818f9acf7d56d5f4 (patch) | |
tree | 6643b6e3f26d230dea76f5a00dbae9647e772a96 | |
parent | c1bbe9503679ea23db8e874a0d2e2a53d1df5ffd (diff) |
shiboken6/tests: Fix a few warnings by clang and type system parsing
Pick-to: 6.2
Change-Id: Id4d26793bd17e1f6597e815603a3adb2262dad10
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
3 files changed, 3 insertions, 5 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testabstractmetaclass.cpp b/sources/shiboken6/ApiExtractor/tests/testabstractmetaclass.cpp index 4912f0505..755947ec4 100644 --- a/sources/shiboken6/ApiExtractor/tests/testabstractmetaclass.cpp +++ b/sources/shiboken6/ApiExtractor/tests/testabstractmetaclass.cpp @@ -566,14 +566,14 @@ void TestAbstractMetaClass::testIsPolymorphic() {\n\ public:\n\ A();\n\ - inline bool abc() const {}\n\ + inline bool abc() const { return false; }\n\ };\n\ \n\ class B : public A\n\ {\n\ public:\n\ B();\n\ - inline bool abc() const {}\n\ + inline bool abc() const { return false; }\n\ };\n"; const char* xmlCode = "\ <typesystem package='Foo'>\n\ diff --git a/sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp b/sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp index 9b39e92be..56706e596 100644 --- a/sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp +++ b/sources/shiboken6/ApiExtractor/tests/testaddfunction.cpp @@ -457,8 +457,6 @@ void TestAddFunction::testAddFunctionOnTypedef() const char cppCode[] = "template<class T> class Foo { }; typedef Foo<int> FooInt;\n"; const char xmlCode[] = "\ <typesystem package='Package'>\n\ - <custom-type name='PySequence'/>\n\ - <primitive-type name='int'/>\n\ <value-type name='FooInt'>\n\ <add-function signature='FooInt(PySequence)'>\n\ <inject-code class='target' position='beginning'>custom_code();</inject-code>\n\ diff --git a/sources/shiboken6/ApiExtractor/tests/testtemplates.cpp b/sources/shiboken6/ApiExtractor/tests/testtemplates.cpp index 083de6d6d..20f22bc09 100644 --- a/sources/shiboken6/ApiExtractor/tests/testtemplates.cpp +++ b/sources/shiboken6/ApiExtractor/tests/testtemplates.cpp @@ -363,7 +363,7 @@ enum ClassType { }; template<ClassType CLASS_TYPE> struct BaseTemplateClass { - inline ClassType getClassType() const { CLASS_TYPE; } + inline ClassType getClassType() const { return CLASS_TYPE; } }; typedef BaseTemplateClass<TypeOne> TypeOneClass; } |