From 830e0a7b2fb7bc4f15ed953fa0f4cf7f6bde36b0 Mon Sep 17 00:00:00 2001 From: songwentao Date: Mon, 15 Aug 2022 15:43:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E5=90=AFAM=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 开启AM宏定义 清除一个未定义的变量,解决编译报错 Log: Influence: 无 Task: https://pms.uniontech.com/task-view-162227.html Change-Id: I5d94d7d6176a2bac663d5bedf07429fdbbd85279 --- CMakeLists.txt | 2 +- frame/dbus/entryinterface.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3367c511..60e04ce85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ endif() file(GLOB INTERFACES "interfaces/*.h") -#add_compile_definitions(USE_AM) +add_compile_definitions(USE_AM) #因为单元测试需要直接测试源代码,而主程序代码中include的单元使用了相对路径 #单元测试的CMakeLists和主程序的CMakeLists路径不同,编译单元测试时会提示找不到文件 diff --git a/frame/dbus/entryinterface.cpp b/frame/dbus/entryinterface.cpp index 18443a888..8b3242446 100644 --- a/frame/dbus/entryinterface.cpp +++ b/frame/dbus/entryinterface.cpp @@ -86,7 +86,6 @@ public: : CurrentWindow(0) , IsActive(false) , IsDocked(false) - , mode(0) {} // begin member variables