21 Aug
2026
21 Aug
'26
2:50 p.m.
On 8/21/26 07:03, David Gibson wrote:
We always insert -D_GNU_SOURCE and -D_XOPEN_SOURCE=700 when compiling from the Makefile, and we rely on it. Without these listed in .clangd, clangd will generate numerous spurious warnings.
Signed-off-by: David Gibson
--- .clangd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clangd b/.clangd index 41bec92a..51baf737 100644 --- a/.clangd +++ b/.clangd @@ -1,3 +1,3 @@ CompileFlags: # Don't try to interpret our headers as C++' - Add: [-xc, -Wall] + Add: [-xc, -Wall, -D_XOPEN_SOURCE=700, -D_GNU_SOURCE]
Reviewed-by: Laurent Vivier