cmake: Add -Wundef
This commit is contained in:
@@ -179,7 +179,7 @@ macro(set_compiler_flags targetName)
|
||||
|
||||
# Enable -Werror
|
||||
if(NOT MSVC AND ${PROJECT_NAME}_WERROR)
|
||||
target_compile_options(${targetName} PRIVATE -Werror -Wno-error=deprecated-declarations)
|
||||
target_compile_options(${targetName} PRIVATE -Werror -Wundef -Wno-error=deprecated-declarations)
|
||||
endif()
|
||||
|
||||
endmacro()
|
||||
|
||||
@@ -6919,7 +6919,7 @@ void TestDocks::tst_dragByTabBar()
|
||||
m->resize(osWindowMinWidth(), 200);
|
||||
|
||||
dock2->addDockWidgetAsTab(dock3);
|
||||
#if KDDOCKWIDGETS_QTWIDGETS
|
||||
#if defined(KDDOCKWIDGETS_QTWIDGETS)
|
||||
if (documentMode)
|
||||
static_cast<QTabWidget *>(
|
||||
static_cast<FrameWidget *>(dock2->dptr()->frame())->tabWidget()->asWidget())
|
||||
|
||||
Reference in New Issue
Block a user