1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #21358 from maribu/build_system/warn-about-broken-doc

buildsystem: Enable -Wdocumentation for LLVM
This commit is contained in:
mguetschow 2025-04-04 09:26:57 +00:00 committed by GitHub
commit eb56a566c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ CFLAGS += -Wstrict-overflow
# Worse yet they hide errors by accepting wildcard argument types.
OPTIONAL_CFLAGS += -Wstrict-prototypes
OPTIONAL_CFLAGS += -Wold-style-definition
OPTIONAL_CFLAGS += -Wdocumentation -Wno-error=documentation -Wno-documentation-deprecated-sync
# Unwanted flags for c++
CXXUWFLAGS += -std=%

View File

@ -30,6 +30,9 @@ ifneq (8, $(firstword $(shell echo 8 $(GCC_VERSION) | tr ' ' '\n' | sort -n)))
OPTIONAL_CFLAGS_BLACKLIST += -fmacro-prefix-map=$(RIOTBASE)/=
endif
# GCC does not warn about documentation (yet)
OPTIONAL_CFLAGS_BLACKLIST += -Wdocumentation -Wno-error=documentation -Wno-documentation-deprecated-sync
# We use GDB for debugging
include $(RIOTMAKE)/tools/gdb.inc.mk