Skip to content

Commit e9da938

Browse files
committed
Bug#34853213 Angel data node does not detect if child data node exits
normally Post push fix for compiler warning from clang. storage/ndb/src/kernel/angel.cpp:126:10: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init] return {h}; ^~~ The intention with braces is to get a warning whenever a narrowing conversion occurs (pid_t -> std::int_max_64t). Such narrowing is not known to happen and thus the braces are removed in order to silence the warning. Change-Id: I39c3e6d5187747dd55824bab5ba9fd126bad2dd5
1 parent 53f3c06 commit e9da938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/ndb/src/kernel/angel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ inline std::intmax_t process_waiter::get_pid_as_intmax() const
123123
if (!valid()) return -1;
124124
return {GetProcessId(h)};
125125
#else
126-
return {h};
126+
return h;
127127
#endif
128128
}
129129

0 commit comments

Comments
 (0)