Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151267156
D52940.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
568 B
Referenced Files
None
Subscribers
None
D52940.diff
View Options
diff --git a/sys/sys/tree.h b/sys/sys/tree.h
--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -541,9 +541,9 @@
* So the first loop iteration cannot lead to accessing an \
* uninitialized 'child', and a later iteration can only happen \
* when a value has been assigned to 'child' in the previous \
- * one. \
+ * one. Nevertheless, initialize 'child' to appease GCC. \
*/ \
- struct type *child, *child_up, *gpar; \
+ struct type *child = NULL, *child_up, *gpar; \
__uintptr_t elmdir, sibdir; \
\
do { \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 5:19 AM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31079174
Default Alt Text
D52940.diff (568 B)
Attached To
Mode
D52940: rb tree: quiet gcc -Wmaybe-uninitialized
Attached
Detach File
Event Timeline
Log In to Comment