From 9843d1567908cb15d08a044c469e7077abd47793 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 19 Apr 2021 15:09:24 +1000 Subject: [PATCH] warnings: add clang-12 warnings --- nc_warnings.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nc_warnings.cmake b/nc_warnings.cmake index 4185e50..c61aaed 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -90,6 +90,12 @@ append_compile_flag(-Wold-style-cast) append_compile_flag(-Wmissing-field-initializers) +# clang 12 +append_compile_flag(-Wcast-function-type) +append_compile_flag(-Wstring-concatenation) +append_compile_flag(-Wtautological-unsigned-char-zero-compare) +append_compile_flag(-Wtautological-value-range-compare) + # ------------------------------------------------------------------------- # Required extensions #AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])