From d97b587871f99d56c515419a11c3cdc224d3a63c Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 10 Dec 2019 16:59:15 +1100 Subject: [PATCH] docs: Clear _Static_assert related warnings Unclear why defining _Static_assert(x, y) in PREDEFINED list doesn't match anything, but defining _Static_assert() does match. --- docs/Doxyfile | 2 +- docs/sphinx-known-warnings.txt | 57 ---------------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) diff --git a/docs/Doxyfile b/docs/Doxyfile index 3975405111..6ff8d2f76a 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -302,7 +302,7 @@ EXPAND_ONLY_PREDEF = YES PREDEFINED = \ $(ENV_DOXYGEN_DEFINES) \ __attribute__(x)= \ - _Static_assert(x) = \ + _Static_assert()= \ IDF_DEPRECATED(X)= \ IRAM_ATTR= \ configSUPPORT_DYNAMIC_ALLOCATION=1 \ diff --git a/docs/sphinx-known-warnings.txt b/docs/sphinx-known-warnings.txt index 140b700665..bb2c611b6c 100644 --- a/docs/sphinx-known-warnings.txt +++ b/docs/sphinx-known-warnings.txt @@ -76,63 +76,6 @@ If type alias or template alias: void() esp_spp_cb_t(esp_spp_cb_event_t event, esp_spp_cb_param_t *param) ----^ -mcpwm.inc:line: WARNING: Error when parsing function declaration. -If the function has no return type: - Error in declarator or parameters and qualifiers - Invalid definition: Expected identifier in nested name. [error at 31] - _Static_assert(MCPWM_UNIT_MAX, "MCPWM unit number not equal to chip capabilities") - -------------------------------^ -If the function has a return type: - Error in declarator - If pointer to member declarator: - Invalid definition: Expected identifier in nested name. [error at 14] - _Static_assert(MCPWM_UNIT_MAX, "MCPWM unit number not equal to chip capabilities") - --------------^ - If declId, parameters, and qualifiers: - Invalid definition: Expected identifier in nested name. [error at 14] - _Static_assert(MCPWM_UNIT_MAX, "MCPWM unit number not equal to chip capabilities") - --------------^ - If parenthesis in noptr-declarator: - Error in declarator or parameters and qualifiers - If pointer to member declarator: - Invalid definition: Expected '::' in pointer to member (function). [error at 29] - _Static_assert(MCPWM_UNIT_MAX, "MCPWM unit number not equal to chip capabilities") - -----------------------------^ - If declarator-id: - Invalid definition: Expecting "(" in parameters_and_qualifiers. [error at 29] - _Static_assert(MCPWM_UNIT_MAX, "MCPWM unit number not equal to chip capabilities") - -----------------------------^ -mcpwm.inc:line: WARNING: Error when parsing function declaration. -If the function has no return type: - Error in declarator or parameters and qualifiers - Invalid definition: Expected identifier in nested name, got keyword: sizeof [error at 21] - _Static_assert(sizeof( ulp_insn_t ), "ULP coprocessor instruction size should be 4 bytes") - ---------------------^ -If the function has a return type: - Error in declarator - If pointer to member declarator: - Invalid definition: Expected identifier in nested name. [error at 14] - _Static_assert(sizeof( ulp_insn_t ), "ULP coprocessor instruction size should be 4 bytes") - --------------^ - If declId, parameters, and qualifiers: - Invalid definition: Expected identifier in nested name. [error at 14] - _Static_assert(sizeof( ulp_insn_t ), "ULP coprocessor instruction size should be 4 bytes") - --------------^ - If parenthesis in noptr-declarator: - Error in declarator or parameters and qualifiers - If pointer to member declarator: - Invalid definition: Expected identifier in nested name, got keyword: sizeof [error at 21] - _Static_assert(sizeof( ulp_insn_t ), "ULP coprocessor instruction size should be 4 bytes") - ---------------------^ - If declarator-id: - Invalid definition: Expected identifier in nested name, got keyword: sizeof [error at 21] - _Static_assert(sizeof( ulp_insn_t ), "ULP coprocessor instruction size should be 4 bytes") - ---------------------^ -mcpwm.inc:line: WARNING: doxygenfunction: Unable to resolve multiple matches for function "_Static_assert" with arguments () in doxygen xml output for project "esp32-idf" from directory: xml_in/. -Potential matches: - - _Static_assert(MCPWM_UNIT_MAX, "MCPWM unit number not equal to chip capabilities") - - _Static_assert(sizeof( ulp_insn_t ), "ULP coprocessor instruction size should be 4 bytes") - # # Issue present only when building on msys2 / mingw32 END <<< #