Skip to content

Commit

Permalink
Suppress pedantic warnings for dt_btf.c
Browse files Browse the repository at this point in the history
The file includes include/linux/btf.h, which has an unnamed
union.  Suppress the warning
    ISO C99 doesn?t support unnamed structs/unions [-Wpedantic]

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed Jan 26, 2024
1 parent 5ec88d3 commit 3ad8eb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libdtrace/Build
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ libdtrace_LIBSOURCES := libdtrace-build libproc libport libcommon
libdtrace_SECONDARY := libproc libport

# Disable certain warnings for these files
dt_btf.c_CFLAGS := -Wno-pedantic
dt_consume.c_CFLAGS := -Wno-pedantic
dt_debug.c_CFLAGS := -Wno-prio-ctor-dtor
dt_cg.c_CFLAGS := -Wno-pedantic
Expand Down

0 comments on commit 3ad8eb8

Please sign in to comment.