Opened 15 years ago

Closed 14 years ago

#1556 closed Patches (fixed)

Missing initialisations, thread code now warning free

Reported by: jensseidel@… Owned by: Anthony Williams
Milestone: Boost 1.36.0 Component: thread
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: jensseidel@…

Description

Hi,

I compiled all header files in thread alone with g++ 4.3 and got some warnings because of not initialized variables. Probably it is at least once a real error and should be fixed.

I'm surprised that I did not find missing include statements, you did a good job! Please note that I skipped all headers in win32/.

Attachments (1)

boost.thread.diff (1.9 KB ) - added by jensseidel@… 15 years ago.

Download all attachments as: .zip

Change History (3)

by jensseidel@…, 15 years ago

Attachment: boost.thread.diff added

comment:1 by Anthony Williams, 15 years ago

Status: newassigned

This code deliberately relies on the fact that initializing an aggregate with {0} initializes all members to zero.

I don't like the warnings, though.

comment:2 by Anthony Williams, 14 years ago

Resolution: fixed
Status: assignedclosed

Fixed on trunk

Note: See TracTickets for help on using tickets.