Opened 11 years ago

Closed 11 years ago

#5739 closed Bugs (fixed)

set-but-not-used warnings with gcc-4.6

Reported by: anonymous Owned by: viboes
Milestone: Boost 1.49.0 Component: thread
Version: Boost Development Trunk Severity: Cosmetic
Keywords: 1.48 Cc: viboes

Description

Dear Anthony,

Thanks for your work with Boost Threads. Would you please consider addressing the following warnings when compiling from svn trunk?

Thanks in advace

libs/thread/src/pthread/timeconv.inl: In function ‘void {anonymous}::to_time(int, boost::xtime&)’: libs/thread/src/pthread/timeconv.inl:22:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] libs/thread/src/pthread/timeconv.inl: In function ‘void {anonymous}::to_timespec_duration(const boost::xtime&, timespec&)’: libs/thread/src/pthread/timeconv.inl:59:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] libs/thread/src/pthread/timeconv.inl: In function ‘void {anonymous}::to_duration(boost::xtime, int&)’: libs/thread/src/pthread/timeconv.inl:90:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] libs/thread/src/pthread/timeconv.inl: In function ‘void {anonymous}::to_microduration(boost::xtime, int&)’: libs/thread/src/pthread/timeconv.inl:112:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]

Ubuntu oneiric alpha, gcc 4.6.1 - 64 bits

R.

Change History (3)

comment:1 by viboes, 11 years ago

Cc: viboes added
Keywords: 1.48 added
Milestone: Boost 1.48.0To Be Determined
Type: Feature RequestsBugs

comment:2 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.49.0
Owner: changed from Anthony Williams to viboes
Status: newassigned

Committed in trunk revision 75785.

comment:3 by viboes, 11 years ago

Resolution: fixed
Status: assignedclosed

Committed in release at #76291

Note: See TracTickets for help on using tickets.