From 19e8b3a5c1b20b5de092c2c009aeea495c7d0878 Mon Sep 17 00:00:00 2001 From: Cristian Cristea Date: Wed, 29 Sep 2021 17:08:31 +0300 Subject: [PATCH] Removed all the extra warnings for the Release build --- examples/16x2-Display/CMakeLists.txt | 4 ++-- examples/20x4-Display/CMakeLists.txt | 4 ++-- examples/CMakeLists.txt | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/16x2-Display/CMakeLists.txt b/examples/16x2-Display/CMakeLists.txt index c310fb3..4cd3eb2 100644 --- a/examples/16x2-Display/CMakeLists.txt +++ b/examples/16x2-Display/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(16x2_display main.cpp ../../LCD_I2C.cpp) # Add program info pico_set_program_name(16x2_display "Liquid Crystal Display I2C Library - 16x2 LCD Example") -pico_set_program_version(16x2_display "1.0.0") +pico_set_program_version(16x2_display "1.0.1") pico_set_program_url(16x2_display "https://github.com/cristiancristea00/Pico-I2C-LCD/tree/main/examples/16x2-Display") pico_set_program_description(16x2_display "Copyright (c) 2021 Cristian Cristea") @@ -18,4 +18,4 @@ pico_add_extra_outputs(16x2_display) # Set float and double implementation pico_set_float_implementation(16x2_display pico) -pico_set_double_implementation(16x2_display pico) \ No newline at end of file +pico_set_double_implementation(16x2_display pico) diff --git a/examples/20x4-Display/CMakeLists.txt b/examples/20x4-Display/CMakeLists.txt index 92b041e..b6533c4 100644 --- a/examples/20x4-Display/CMakeLists.txt +++ b/examples/20x4-Display/CMakeLists.txt @@ -2,7 +2,7 @@ add_executable(20x4_display main.cpp ../../LCD_I2C.cpp) # Add program info pico_set_program_name(20x4_display "Liquid Crystal Display I2C Library - 20x4 LCD Example") -pico_set_program_version(20x4_display "1.0.0") +pico_set_program_version(16x2_display "1.0.1") pico_set_program_url(20x4_display "https://github.com/cristiancristea00/Pico-I2C-LCD/tree/main/examples/20x4-Display") pico_set_program_description(20x4_display "Copyright (c) 2021 Cristian Cristea") @@ -18,4 +18,4 @@ pico_add_extra_outputs(20x4_display) # Set float and double implementation pico_set_float_implementation(20x4_display pico) -pico_set_double_implementation(20x4_display pico) \ No newline at end of file +pico_set_double_implementation(20x4_display pico) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e1d5d76..81e87fa 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -19,12 +19,12 @@ set(CMAKE_CXX_FLAGS_DEBUG "-pipe -g -O0 -Wfatal-errors -Wpedantic -Wall -Wextra set(CMAKE_C_FLAGS_DEBUG "-pipe -g -O0 -Wfatal-errors -Wpedantic -Wall -Wextra -Wshadow=local -Wdouble-promotion -Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-security -Wformat-truncation=2 -Wnull-dereference -Wimplicit-fallthrough=3 -Wshift-overflow=2 -Wswitch-default -Wunused-parameter -Wunused-const-variable=2 -Wstrict-overflow=4 -Wstringop-overflow=3 -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wmissing-noreturn -Wsuggest-attribute=malloc -Wsuggest-attribute=format -Wmissing-format-attribute -Wsuggest-attribute=cold -Walloc-zero -Walloca -Wattribute-alias=2 -Wduplicated-branches -Wcast-qual") # Set Release build compiler arguments -set(CMAKE_CXX_FLAGS_RELEASE "-pipe -O2 -Wfatal-errors -Wpedantic -Wall -Wextra -Wshadow=local -Wdouble-promotion -Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-security -Wformat-truncation=2 -Wnull-dereference -Wimplicit-fallthrough=3 -Wshift-overflow=2 -Wswitch-default -Wunused-parameter -Wunused-const-variable=2 -Wstrict-overflow=4 -Wstringop-overflow=3 -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wmissing-noreturn -Wsuggest-attribute=malloc -Wsuggest-attribute=format -Wmissing-format-attribute -Wsuggest-attribute=cold -Walloc-zero -Walloca -Wattribute-alias=2 -Wduplicated-branches -Wcast-qual -fno-builtin") -set(CMAKE_C_FLAGS_RELEASE "-pipe -O2 -Wfatal-errors -Wpedantic -Wall -Wextra -Wshadow=local -Wdouble-promotion -Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-security -Wformat-truncation=2 -Wnull-dereference -Wimplicit-fallthrough=3 -Wshift-overflow=2 -Wswitch-default -Wunused-parameter -Wunused-const-variable=2 -Wstrict-overflow=4 -Wstringop-overflow=3 -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wmissing-noreturn -Wsuggest-attribute=malloc -Wsuggest-attribute=format -Wmissing-format-attribute -Wsuggest-attribute=cold -Walloc-zero -Walloca -Wattribute-alias=2 -Wduplicated-branches -Wcast-qual -fno-builtin") +set(CMAKE_CXX_FLAGS_RELEASE "-pipe -O2 -fno-builtin") +set(CMAKE_C_FLAGS_RELEASE "-pipe -O2 -fno-builtin") # Initialise the Raspberry Pi Pico SDK pico_sdk_init() # Set the two examples directories add_subdirectory(16x2-Display) -add_subdirectory(20x4-Display) \ No newline at end of file +add_subdirectory(20x4-Display)