Skip to content

Commit adb3ffb

Browse files
committed
After tblah's update llvm#99817, I'm getting a warning about an unused
variable. It looks to me like the warning is bogus, possibly due to a bug in the compiler I'm using (GCC 9.3.0). But adding a "maybe_unused" clause fixes it and makes my builds clean.
1 parent 37123e9 commit adb3ffb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Lower/DirectivesCommon.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ static inline void genOmpAtomicHintAndMemoryOrderClauses(
137137
}
138138

139139
template <typename AtomicListT>
140-
static void processOmpAtomicTODO(mlir::Type elementType, mlir::Location loc) {
140+
static void processOmpAtomicTODO(mlir::Type elementType,
141+
[[maybe_unused]] mlir::Location loc) {
141142
if (!elementType)
142143
return;
143144
if constexpr (std::is_same<AtomicListT,

0 commit comments

Comments
 (0)