[flang-commits] [flang] ae023f3 - [flang] Fix a warning
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Wed Nov 20 09:05:41 PST 2024
Author: Kazu Hirata
Date: 2024-11-20T09:05:34-08:00
New Revision: ae023f3499dda3975e6379bc4c0a8d097ac18f60
URL: https://github.com/llvm/llvm-project/commit/ae023f3499dda3975e6379bc4c0a8d097ac18f60
DIFF: https://github.com/llvm/llvm-project/commit/ae023f3499dda3975e6379bc4c0a8d097ac18f60.diff
LOG: [flang] Fix a warning
This patch fixes:
flang/include/flang/Semantics/openmp-modifiers.h:45:69: error: extra
';' outside of a function is incompatible with C++98
[-Werror,-Wc++98-compat-extra-semi]
Added:
Modified:
flang/include/flang/Semantics/openmp-modifiers.h
Removed:
################################################################################
diff --git a/flang/include/flang/Semantics/openmp-modifiers.h b/flang/include/flang/Semantics/openmp-modifiers.h
index 6be582761ed687..65d28f71fbc726 100644
--- a/flang/include/flang/Semantics/openmp-modifiers.h
+++ b/flang/include/flang/Semantics/openmp-modifiers.h
@@ -42,7 +42,7 @@ namespace Fortran::semantics {
// or post-modifier (i.e. item: modifier). The default is pre-.
// Add an additional property that reflects the type of modifier.
-ENUM_CLASS(OmpProperty, Required, Unique, Exclusive, Ultimate, Post);
+ENUM_CLASS(OmpProperty, Required, Unique, Exclusive, Ultimate, Post)
using OmpProperties = common::EnumSet<OmpProperty, OmpProperty_enumSize>;
using OmpClauses =
common::EnumSet<llvm::omp::Clause, llvm::omp::Clause_enumSize>;
More information about the flang-commits
mailing list