git: 667a595fee5e - stable/13 - tau32-ddk.c: suppress warning about ignored attributes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Apr 2024 10:35:01 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=667a595fee5ef5663752d585c980d72aeeb7792b commit 667a595fee5ef5663752d585c980d72aeeb7792b Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2024-04-20 10:28:47 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2024-04-20 10:29:10 +0000 tau32-ddk.c: suppress warning about ignored attributes This driver is heavily obfuscated, and causes a -Werror warning with clang 18 now: sys/dev/ce/tau32-ddk.c:358:10: error: 'const' attribute on function returning 'void'; attribute ignored [-Werror,-Wignored-attributes] 358 | ((const))nvqbt(void){__asm __volatile("repe; nop; repe; nop;" | ^ Supress the warning since the driver can never be fixed. Direct commit to stable/13, since the driver has been removed in 14.x and later. PR: 276104 --- sys/conf/files.i386 | 2 +- sys/modules/ce/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/files.i386 b/sys/conf/files.i386 index e2031ef2b200..04cbd47333ef 100644 --- a/sys/conf/files.i386 +++ b/sys/conf/files.i386 @@ -44,7 +44,7 @@ dev/agp/agp_via.c optional agp dev/ce/ceddk.c optional ce dev/ce/if_ce.c optional ce dev/ce/tau32-ddk.c optional ce \ - compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION} ${NO_WMISLEADING_INDENTATION}" + compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION} ${NO_WMISLEADING_INDENTATION} -Wno-ignored-attributes" dev/cp/cpddk.c optional cp \ compile-with "${NORMAL_C} ${NO_WMISLEADING_INDENTATION}" dev/cp/if_cp.c optional cp diff --git a/sys/modules/ce/Makefile b/sys/modules/ce/Makefile index cec4c21b2101..3e5c28ce2fb7 100644 --- a/sys/modules/ce/Makefile +++ b/sys/modules/ce/Makefile @@ -28,3 +28,4 @@ opt_ng_cronyx.h: CWARNFLAGS.tau32-ddk.c+= ${NO_WCONSTANT_CONVERSION} CWARNFLAGS.tau32-ddk.c+= ${NO_WMISLEADING_INDENTATION} +CWARNFLAGS.tau32-ddk.c+= -Wno-ignored-attributes