diff --git a/sources/awdebug.cpp b/sources/awdebug.cpp index 4d5ed17..1d26080 100644 --- a/sources/awdebug.cpp +++ b/sources/awdebug.cpp @@ -15,7 +15,9 @@ * along with awesome-widgets. If not, see http://www.gnu.org/licenses/ * ***************************************************************************/ - +#ifndef NDEBUG +#define NDEBUG +#endif /* NDEBUG */ #include #include "awdebug.h" diff --git a/sources/awesome-widget/plugin/awupdatehelper.cpp b/sources/awesome-widget/plugin/awupdatehelper.cpp index c3579dd..1ab3910 100644 --- a/sources/awesome-widget/plugin/awupdatehelper.cpp +++ b/sources/awesome-widget/plugin/awupdatehelper.cpp @@ -17,6 +17,9 @@ #include "awupdatehelper.h" +#ifndef NDEBUG +#define NDEBUG +#endif /* NDEBUG */ #include #include diff --git a/sources/awesomewidgets/CMakeLists.txt b/sources/awesomewidgets/CMakeLists.txt index a97c58a..228b816 100644 --- a/sources/awesomewidgets/CMakeLists.txt +++ b/sources/awesomewidgets/CMakeLists.txt @@ -30,6 +30,7 @@ configure_file(${SUBPROJECT_WEATHER_JSON_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPR qt6_wrap_ui(SUBPROJECT_UI_HEADER ${SUBPROJECT_UI} OPTIONS --translate ui_i18n) add_library(${SUBPROJECT} STATIC ${SUBPROJECT_SOURCE} ${SUBPROJECT_HEADER} ${SUBPROJECT_UI_HEADER}) +set_property(TARGET ${SUBPROJECT} PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(${SUBPROJECT} ${Qt_LIBRARIES} ${Kf6_LIBRARIES}) # install diff --git a/sources/awtranslation.h b/sources/awtranslation.h index 50568c9..583be19 100644 --- a/sources/awtranslation.h +++ b/sources/awtranslation.h @@ -21,4 +21,5 @@ #ifndef ui_i18n #define ui_i18n(text, parent) i18n(text) -#endif \ No newline at end of file +#endif /* ui_i18n */ + diff --git a/sources/extsysmonsources/CMakeLists.txt b/sources/extsysmonsources/CMakeLists.txt index b3fd1c7..6aba6b5 100644 --- a/sources/extsysmonsources/CMakeLists.txt +++ b/sources/extsysmonsources/CMakeLists.txt @@ -15,4 +15,5 @@ file(GLOB SUBPROJECT_SOURCE *.cpp) file(GLOB SUBPROJECT_HEADER *.h) add_library(${SUBPROJECT} STATIC ${SUBPROJECT_SOURCE} ${SUBPROJECT_HEADER}) +set_property(TARGET ${SUBPROJECT} PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(${SUBPROJECT} ${PROJECT_LIBRARY} ${Qt_LIBRARIES} ${Kf6_LIBRARIES}) diff --git a/sources/test/testawbugreporter.cpp b/sources/test/testawbugreporter.cpp index 81dd576..9b15b94 100644 --- a/sources/test/testawbugreporter.cpp +++ b/sources/test/testawbugreporter.cpp @@ -45,7 +45,7 @@ void TestAWBugReporter::test_generateText() void TestAWBugReporter::test_sendBugReport() { - QSignalSpy spy(plugin, SIGNAL(replyReceived(int, QString &))); + QSignalSpy spy(plugin, SIGNAL(replyReceived(int, const QString &))); plugin->sendBugReport(AWTestLibrary::randomString(), plugin->generateText(data.at(0), data.at(1), data.at(2), data.at(3)));