You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warnings as errors causing gcc 10 to fail to compile. #44
Activity
ljluestc commentedon Sep 5, 2023
cmake_minimum_required(VERSION 3.0)
project(YourProjectName)
set(CMAKE_CXX_STANDARD 11)
Set your compiler flags without -Werror
set(C_CXX_FLAGS "-Wall -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden")
Add your source files here
add_executable(your_executable main.cpp)
Apply the compiler flags
target_compile_options(your_executable PRIVATE ${C_CXX_FLAGS})