From aa8b18e53937567c3bb318d97803d1614100965c Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 24 Jun 2016 14:31:09 +0000 Subject: [PATCH] ExecutionEngine: silence unused value warning The Value is only used in debug or asserts builds. Just cast to void to silence an unused variable warning. llvm-svn: 273684 --- lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h index bcd2860ad3c..ff7d1d43925 100644 --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h @@ -244,6 +244,7 @@ public: DEBUG(dbgs() << "\t\tOffset: " << RE.Offset << " RelType: IMAGE_REL_ARM_BRANCH20T" << " Value: " << static_cast(Value) << '\n'); + static_cast(Value); llvm_unreachable("unimplemented relocation"); break; } @@ -258,6 +259,7 @@ public: DEBUG(dbgs() << "\t\tOffset: " << RE.Offset << " RelType: IMAGE_REL_ARM_BRANCH24T" << " Value: " << static_cast(Value) << '\n'); + static_cast(Value); llvm_unreachable("unimplemented relocation"); break; } @@ -272,6 +274,7 @@ public: DEBUG(dbgs() << "\t\tOffset: " << RE.Offset << " RelType: IMAGE_REL_ARM_BLX23T" << " Value: " << static_cast(Value) << '\n'); + static_cast(Value); llvm_unreachable("unimplemented relocation"); break; }