Skip to content

Commit

Permalink
cmd/clangd: add _GNU_SOURCE
Browse files Browse the repository at this point in the history
Add -D_GNU_SOURCE so that clangd doesn't complain about O_PATH.

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
  • Loading branch information
bboozzoo committed Feb 20, 2025
1 parent 4926a21 commit 122ae05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/.clangd
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# -*- Mode: yaml -*-

CompileFlags:
Add: [-I/usr/include/glib-2.0, -Wall, -Wextra, -Wmissing-prototypes, -Wstrict-prototypes, -Wno-missing-field-initializers, -Wno-unused-parameter]
Add: [-I/usr/include/glib-2.0,
-Wall, -Wextra, -Wmissing-prototypes,
-Wstrict-prototypes, -Wno-missing-field-initializers,
-Wno-unused-parameter,
-D_GNU_SOURCE]

0 comments on commit 122ae05

Please sign in to comment.