Opened 14 years ago
Closed 14 years ago
#1984 closed Bugs (fixed)
Uninitialized member warning for struct timespec
Reported by: | Owned by: | Anthony Williams | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | thread |
Version: | Boost 1.35.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
In boost/thread/xtime.hpp and boost/thread/pthread/timespec.hpp the struct timespec is not fully initialized. This results in nasty compiler warnings when using this header files in own projects and using the compiler switch -W (at least for g++ 3.3).
Small fix for this problem is to explicit initialize the whole struct not just the first member.
Patch for version 1.35.0 is attached – applies against SVN, too.
Attachments (1)
Change History (3)
by , 14 years ago
Attachment: | boost_1_35_0-timespec_init.diff added |
---|
comment:1 by , 14 years ago
Component: | None → thread |
---|---|
Owner: | set to |
Note:
See TracTickets
for help on using tickets.
Explicit initialize struct timespec and xtime to avoid compiler wanings