[flang-commits] [PATCH] D130733: [flang] Fix build failure

vdonaldson via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Jul 28 14:53:28 PDT 2022


vdonaldson created this revision.
vdonaldson added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a project: All.
vdonaldson requested review of this revision.

Fix build failure


https://reviews.llvm.org/D130733

Files:
  flang/lib/Lower/OpenMP.cpp


Index: flang/lib/Lower/OpenMP.cpp
===================================================================
--- flang/lib/Lower/OpenMP.cpp
+++ flang/lib/Lower/OpenMP.cpp
@@ -61,9 +61,10 @@
 }
 
 template <typename T>
-static void createPrivateVarSyms(Fortran::lower::AbstractConverter &converter,
-                                 const T *clause,
-                                 Block *lastPrivBlock = nullptr) {
+static void
+createPrivateVarSyms(Fortran::lower::AbstractConverter &converter,
+                     const T *clause,
+                     [[maybe_unused]] Block *lastPrivBlock = nullptr) {
   const Fortran::parser::OmpObjectList &ompObjectList = clause->v;
   for (const Fortran::parser::OmpObject &ompObject : ompObjectList.v) {
     Fortran::semantics::Symbol *sym = getOmpObjectSymbol(ompObject);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130733.448447.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220728/fe59f814/attachment-0001.bin>


More information about the flang-commits mailing list