From de7afe02300009ff9babb3ad50e79e7981b6632c Mon Sep 17 00:00:00 2001 From: Andy Gibbs Date: Wed, 19 Jun 2013 13:33:37 +0000 Subject: [PATCH] Silence 'set but not used' warning when building in release mode using gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184299 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaCast.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Sema/SemaCast.cpp b/lib/Sema/SemaCast.cpp index 3b01c22867..dff06b7f0a 100644 --- a/lib/Sema/SemaCast.cpp +++ b/lib/Sema/SemaCast.cpp @@ -759,6 +759,7 @@ static void DiagnoseReinterpretUpDownCast(Sema &Self, const Expr *SrcExpr, VirtualBase = VirtualBase && IsVirtual; } + (void) NonZeroOffset; // Silence set but not used warning. assert((VirtualBase || NonZeroOffset) && "Should have returned if has non-virtual base with zero offset"); -- 2.40.0