From 211a895008e636faa784d4539c1836dd40e98ed5 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Mon, 15 Feb 2021 14:44:43 -0500 Subject: [PATCH] ci(tests) add pedantic to compiler options --- tests/Makefile | 4 ++-- tests/lv_test_core/lv_test_font_loader.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index bd7fe3738..04ad1afae 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -8,8 +8,8 @@ LVGL_DIR_NAME ?= lvgl WARNINGS = -Werror -Wall -Wextra \ -Wshadow -Wundef -Wmaybe-uninitialized -Wmissing-prototypes -Wpointer-arith -Wuninitialized \ -Wunreachable-code -Wreturn-type -Wmultichar -Wformat-security -Wdouble-promotion -Wclobbered -Wdeprecated \ - -Wempty-body -Wshift-negative-value -Wstack-usage=2048 \ - -Wtype-limits -Wsizeof-pointer-memaccess + -Wempty-body -Wshift-negative-value -Wstack-usage=2048 -pedantic-errors \ + -Wtype-limits -Wsizeof-pointer-memaccess -Wpedantic -Wmissing-prototypes -Wno-discarded-qualifiers #-Wno-unused-value -Wno-unused-parameter OPTIMIZATION ?= -O3 -g0 diff --git a/tests/lv_test_core/lv_test_font_loader.c b/tests/lv_test_core/lv_test_font_loader.c index c61f5c120..16d75444b 100644 --- a/tests/lv_test_core/lv_test_font_loader.c +++ b/tests/lv_test_core/lv_test_font_loader.c @@ -16,6 +16,9 @@ #include "lv_test_font_loader.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" + /********************* * DEFINES *********************/ @@ -212,6 +215,7 @@ static int compare_fonts(lv_font_t * f1, lv_font_t * f2) } #endif +#pragma GCC diagnostic pop /********************** * STATIC FUNCTIONS **********************/