From: Andy Gibbs Date: Wed, 19 Jun 2013 13:33:37 +0000 (+0000) Subject: Silence 'set but not used' warning when building in release mode using gcc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de7afe02300009ff9babb3ad50e79e7981b6632c;p=clang 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 --- 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");