File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -997,21 +997,13 @@ struct OperationState {
997
997
if (!properties) {
998
998
T *p = new T{};
999
999
properties = p;
1000
- #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
1001
- #pragma clang diagnostic push
1002
- // https://github.com/llvm/llvm-project/issues/126600
1003
- #pragma clang diagnostic ignored "-Wdangling-assignment-gsl"
1004
- #endif
1005
1000
propertiesDeleter = [](OpaqueProperties prop) {
1006
1001
delete prop.as <const T *>();
1007
1002
};
1008
- propertiesSetter = [](OpaqueProperties newProp ,
1003
+ propertiesSetter = [](OpaqueProperties new_prop ,
1009
1004
const OpaqueProperties prop) {
1010
- *newProp .as <T *>() = *prop.as <const T *>();
1005
+ *new_prop .as <T *>() = *prop.as <const T *>();
1011
1006
};
1012
- #if defined(__clang__) && __has_warning("-Wdangling-assignment-gsl")
1013
- #pragma clang diagnostic pop
1014
- #endif
1015
1007
propertiesId = TypeID::get<T>();
1016
1008
}
1017
1009
assert (propertiesId == TypeID::get<T>() && " Inconsistent properties" );
You can’t perform that action at this time.
0 commit comments