Skip to content

Commit 859654c

Browse files
committed
[FIX] Add missing InGroup to warning introduced as part of D71830
1 parent 7cbb107 commit 859654c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9912,7 +9912,8 @@ def err_omp_declare_variant_incompat_attributes : Error<
99129912
"'#pragma omp declare variant' is not compatible with any target-specific attributes">;
99139913
def warn_omp_declare_variant_score_not_constant
99149914
: Warning<"score expressions in the OpenMP context selector need to be "
9915-
"constant; %0 is not and will be ignored">;
9915+
"constant; %0 is not and will be ignored">,
9916+
InGroup<SourceUsesOpenMP>;
99169917
def err_omp_declare_variant_user_condition_not_constant
99179918
: Error<"the user condition in the OpenMP context selector needs to be "
99189919
"constant; %0 is not">;

0 commit comments

Comments
 (0)