diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-06-19 13:33:37 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-06-19 13:33:37 +0000 |
commit | de7afe02300009ff9babb3ad50e79e7981b6632c (patch) | |
tree | d92f2e201281397ead99771fcc1aa353a5194e8b /lib/Sema/SemaCast.cpp | |
parent | 9ff463e4af8615a019dbdce406dc50b74460fe2a (diff) |
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
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
-rw-r--r-- | lib/Sema/SemaCast.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |