adonis0147 commented on code in PR #15760: URL: https://github.com/apache/doris/pull/15760#discussion_r1065367886
########## be/CMakeLists.txt: ########## @@ -441,12 +441,13 @@ check_function_exists(sched_getcpu HAVE_SCHED_GETCPU) # compiler flags that are common across debug/release builds # -Wall: Enable all warnings. -# -Wno-sign-compare: suppress warnings for comparison between signed and unsigned # integers # -pthread: enable multithreaded malloc # -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG: enable nanosecond precision for boost # -fno-omit-frame-pointers: Keep frame pointer for functions in register -set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wno-sign-compare -pthread -Werror") +set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wextra -pthread -Werror") Review Comment: ```suggestion set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wextra -pthread -Werror -pedantic") ``` ########## be/CMakeLists.txt: ########## @@ -441,12 +441,13 @@ check_function_exists(sched_getcpu HAVE_SCHED_GETCPU) # compiler flags that are common across debug/release builds # -Wall: Enable all warnings. -# -Wno-sign-compare: suppress warnings for comparison between signed and unsigned # integers # -pthread: enable multithreaded malloc # -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG: enable nanosecond precision for boost # -fno-omit-frame-pointers: Keep frame pointer for functions in register -set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wno-sign-compare -pthread -Werror") +set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wextra -pthread -Werror") Review Comment: Can add an extra option. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org