File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ clang-analyzer-cplusplus.InnerPointer,
83
83
-clang-analyzer-nullability.NullableDereferenced,
84
84
-clang-analyzer-nullability.NullablePassedToNonnull,
85
85
-clang-analyzer-nullability.NullableReturnedFromNonnull,
86
- - clang-analyzer-optin.cplusplus.UninitializedObject,
86
+ clang-analyzer-optin.cplusplus.UninitializedObject,
87
87
-clang-analyzer-optin.cplusplus.VirtualCall,
88
88
-clang-analyzer-optin.mpi.MPI-Checker,
89
89
-clang-analyzer-optin.osx.OSObjectCStyleCast,
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ const char* AllocationTypeStr(AllocationType type);
54
54
// / \brief The place is used to specify where the data is stored.
55
55
class PADDLE_API Place {
56
56
public:
57
- Place () : device(0 ), alloc_type_(AllocationType::UNDEFINED) {}
57
+ Place ()
58
+ : device(0 ), alloc_type_(AllocationType::UNDEFINED), device_type_id_(0 ) {}
58
59
59
60
explicit Place (AllocationType type,
60
61
int8_t id,
You can’t perform that action at this time.
0 commit comments