From b19249f9fe87d0509ecc99ca9e993761816f08d8 Mon Sep 17 00:00:00 2001 From: Hariharan Devarajan Date: Fri, 15 Dec 2023 03:18:50 +0000 Subject: [PATCH] remove O0 optimization for building tests on new compiler --- test/hammer/CMakeLists.txt | 2 +- test/symver/retX_new.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hammer/CMakeLists.txt b/test/hammer/CMakeLists.txt index 748bd6e..e64ba9f 100644 --- a/test/hammer/CMakeLists.txt +++ b/test/hammer/CMakeLists.txt @@ -14,7 +14,7 @@ set(XSIZE 1) set(YSIZE 1) set(CMAKE_BUILD_TYPE Debug) -SET(CMAKE_CXX_FLAGS_DEBUG " ${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall -Werror -Wextra") +SET(CMAKE_CXX_FLAGS_DEBUG " ${CMAKE_CXX_FLAGS_DEBUG} -Wall -Werror -Wextra") add_definitions(-DXSIZE=${XSIZE}) add_definitions(-DYSIZE=${YSIZE}) diff --git a/test/symver/retX_new.c b/test/symver/retX_new.c index 83b8cba..41f436d 100644 --- a/test/symver/retX_new.c +++ b/test/symver/retX_new.c @@ -14,4 +14,4 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "sym_macro.h" SYMVER_ATTRIBUTE(retX_new, retX @ @GOTCHA_2) -int retX_new(int x) { return x; } \ No newline at end of file +int retX_new(int x) { return x; }