From 90fb3ff438b63990e1dfd06d0f08b345819be46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Thu, 17 Nov 2022 17:36:32 +0000 Subject: [PATCH] Disable a compiler warning for Flex generated code The flex+clang combination in the macOS Intel builder generates -Wdocumentation warnings. Silence those warnings. --- include/ws_diag_control.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ws_diag_control.h b/include/ws_diag_control.h index 32ef50dd3f..a1ca422694 100644 --- a/include/ws_diag_control.h +++ b/include/ws_diag_control.h @@ -182,6 +182,8 @@ extern "C" { * -Wsigned-compare warnings * -Wshorten-64-to-32 warnings, if the compiler *has* -Wshorten-64-to-32 * -Wunreachable-code warnings + * The version of Flex in the macOS Intel build bots triggers documentation warnings. + * -Wdocumentation * * We use DIAG_OFF() and DIAG_ON(), so we only use features that the * compiler supports. @@ -199,8 +201,10 @@ extern "C" { #define DIAG_OFF_FLEX \ DIAG_OFF(sign-compare) \ DIAG_OFF(shorten-64-to-32) \ - DIAG_OFF(unreachable-code) + DIAG_OFF(unreachable-code) \ + DIAG_OFF(documentation) #define DIAG_ON_FLEX \ + DIAG_ON(documentation) \ DIAG_ON(unreachable-code) \ DIAG_ON(shorten-64-to-32) \ DIAG_ON(sign-compare)