Skip to content

Commit f8183ce

Browse files
psteinfeldyuxuanchen1997
authored andcommitted
[flang] Fix warning in build (#100134)
Summary: After tblah's update #99817, I'm getting a warning about an unusedvariable. 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. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251162
1 parent 2427242 commit f8183ce

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)