diff options
Diffstat (limited to 'source/include/platform/acgcc.h')
-rw-r--r-- | source/include/platform/acgcc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/include/platform/acgcc.h b/source/include/platform/acgcc.h index 272e77849f9e..ab0d418365ab 100644 --- a/source/include/platform/acgcc.h +++ b/source/include/platform/acgcc.h @@ -8,7 +8,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp. * All rights reserved. * * 2. License @@ -224,4 +224,12 @@ typedef __builtin_va_list va_list; } #endif +/* + * Explicitly mark strings that lack a terminating NUL character so + * that ACPICA can be built with -Wunterminated-string-initialization. + */ +#if __has_attribute(__nonstring__) +#define ACPI_NONSTRING __attribute__((__nonstring__)) +#endif + #endif /* __ACGCC_H__ */ |