[DTrace-devel] [PATCH 3/3] Suppress pedantic warnings for dt_btf.c
Kris Van Hees
kris.van.hees at oracle.com
Fri Jan 26 05:39:07 UTC 2024
On Wed, Nov 29, 2023 at 09:43:59PM -0500, eugene.loh at oracle.com wrote:
>
> 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 at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
> libdtrace/Build | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libdtrace/Build b/libdtrace/Build
> index a97e57c6..5ec5d0c8 100644
> --- a/libdtrace/Build
> +++ b/libdtrace/Build
> @@ -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
> --
> 2.18.4
>
>
More information about the DTrace-devel
mailing list