mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-24 17:01:07 +00:00
Eliminate gcc7 compiler warnings
we will get warning:```parameter ‘op’ set but not used``` when template function with empty template parameter list. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D122527
This commit is contained in:
parent
6e2c6c9def
commit
12ba76c6d1
@ -1617,6 +1617,7 @@ static LogicalResult verifyTraits(Operation *op) {
|
||||
template <typename... Ts>
|
||||
static LogicalResult verifyRegionTraitsImpl(Operation *op,
|
||||
std::tuple<Ts...> *) {
|
||||
(void)op;
|
||||
LogicalResult result = success();
|
||||
(void)std::initializer_list<int>{
|
||||
(result = succeeded(result) ? Ts::verifyRegionTrait(op) : failure(),
|
||||
|
Loading…
Reference in New Issue
Block a user