[libunwind] r342811 - [libunwind][NFC] Suppress unused parameter warnings
Louis Dionne via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 22 11:18:34 PDT 2018
Author: ldionne
Date: Sat Sep 22 11:18:34 2018
New Revision: 342811
URL: http://llvm.org/viewvc/llvm-project?rev=342811&view=rev
Log:
[libunwind][NFC] Suppress unused parameter warnings
Reviewers: EricWF
Subscribers: christof, chrib, dexonsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D52393
Modified:
libunwind/trunk/src/Registers.hpp
Modified: libunwind/trunk/src/Registers.hpp
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/Registers.hpp?rev=342811&r1=342810&r2=342811&view=diff
==============================================================================
--- libunwind/trunk/src/Registers.hpp (original)
+++ libunwind/trunk/src/Registers.hpp Sat Sep 22 11:18:34 2018
@@ -517,6 +517,7 @@ inline bool Registers_x86_64::validVecto
return false;
return true;
#else
+ (void)regNum; // suppress unused parameter warning
return false;
#endif
}
@@ -526,6 +527,7 @@ inline v128 Registers_x86_64::getVectorR
assert(validVectorRegister(regNum));
return _xmm[regNum - UNW_X86_64_XMM0];
#else
+ (void)regNum; // suppress unused parameter warning
_LIBUNWIND_ABORT("no x86_64 vector registers");
#endif
}
@@ -535,6 +537,7 @@ inline void Registers_x86_64::setVectorR
assert(validVectorRegister(regNum));
_xmm[regNum - UNW_X86_64_XMM0] = value;
#else
+ (void)regNum; (void)value; // suppress unused parameter warnings
_LIBUNWIND_ABORT("no x86_64 vector registers");
#endif
}
@@ -2149,7 +2152,7 @@ inline Registers_arm::Registers_arm()
memset(&_vfp_d16_d31, 0, sizeof(_vfp_d16_d31));
#if defined(__ARM_WMMX)
_saved_iwmmx = false;
- _saved_iwmmx_control = false;
+ _saved_iwmmx_control = false;
memset(&_iwmmx, 0, sizeof(_iwmmx));
memset(&_iwmmx_control, 0, sizeof(_iwmmx_control));
#endif
More information about the cfe-commits
mailing list