From 54bfb986b62994d4fa93911f94dbf0a474bd4e4c Mon Sep 17 00:00:00 2001 From: AltoXorg <56553686+Alto1772@users.noreply.github.com> Date: Fri, 17 May 2024 15:16:54 +0800 Subject: [PATCH] clang -> GCC disable warnings --- include/disable_warnings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/disable_warnings.h b/include/disable_warnings.h index ff36f12..6526983 100644 --- a/include/disable_warnings.h +++ b/include/disable_warnings.h @@ -1,4 +1,4 @@ -#ifdef __clang__ -#pragma clang diagnostic ignored "-Wunused-variable" -#pragma clang diagnostic ignored "-Wimplicit-function-declaration" +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wimplicit-function-declaration" #endif