Warning fix for clang

This commit is contained in:
William S Fulton 2025-04-29 20:51:05 +01:00
parent e1cf7b37ac
commit 4bc2a3f514
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ enum exceptions_support {
// When using scoped_dohptr, it's very simple to accidentally pass it to a vararg function, such as Printv() or Printf(), resulting in catastrophic results // When using scoped_dohptr, it's very simple to accidentally pass it to a vararg function, such as Printv() or Printf(), resulting in catastrophic results
// during run-time (crash or, worse, junk in the generated output), so make sure gcc warning about this, which is not enabled by default for some reason (see // during run-time (crash or, worse, junk in the generated output), so make sure gcc warning about this, which is not enabled by default for some reason (see
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867 for more information), is enabled. // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867 for more information), is enabled.
#ifdef __GNUC__ #if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic error "-Wconditionally-supported" #pragma GCC diagnostic error "-Wconditionally-supported"
#endif // __GNUC__ #endif // __GNUC__