From f430c8ee5b99562f76b7d6304bd103550987d694 Mon Sep 17 00:00:00 2001 From: TCMalloc Team Date: Thu, 10 Sep 2026 06:59:18 -0700 Subject: [PATCH] Define TCMALLOC_INTERNAL_PERCPU_USE_TLS_WORKAROUND to 0 when disabled. Avoid -Wundef warning when percpu_tcmalloc.h is compiled on non-GCC or non-x86_64 platforms. PiperOrigin-RevId: 979161064 --- tcmalloc/internal/percpu_tcmalloc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/tcmalloc/internal/percpu_tcmalloc.h b/tcmalloc/internal/percpu_tcmalloc.h index 6a24fcdca..31502b42a 100644 --- a/tcmalloc/internal/percpu_tcmalloc.h +++ b/tcmalloc/internal/percpu_tcmalloc.h @@ -54,8 +54,6 @@ // // TODO: Remove this when GCC releases a fixed version. #define TCMALLOC_INTERNAL_PERCPU_USE_TLS_WORKAROUND 1 -#else -#define TCMALLOC_INTERNAL_PERCPU_USE_TLS_WORKAROUND 0 #endif GOOGLE_MALLOC_SECTION_BEGIN