Modify

Ticket #8347 (closed Bugs: fixed)

Opened 13 months ago

Last modified 7 months ago

io_op::want_ uninitialized in c'tor

Reported by: Richard <legalize@…> Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.52.0 Severity: Cosmetic
Keywords: Cc:

Description

template <typename Stream, typename Operation, typename Handler> class io_op { public:

io_op(Stream& next_layer, stream_core& core,

const Operation& op, Handler& handler)

: next_layer_(next_layer),

core_(core), op_(op), bytes_transferred_(0), handler_(BOOST_ASIO_MOVE_CAST(Handler)(handler))

{

CID 10923 (#4-6 of 6): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member "want_" is not initialized in this constructor nor in any functions that it calls.

}

Attachments

Change History

comment:1 Changed 11 months ago by chris_kohlhoff

  • Severity changed from Problem to Cosmetic

This warning seems to be a cosmetic issue only. The want_ variable is set and used in io_op::operator(), and this precedes any other call that may use it (e.g. a copy or move constructor).

comment:2 Changed 7 months ago by chris_kohlhoff

  • Status changed from new to closed
  • Resolution set to fixed

Fixed on trunk in [85743]. Merged to release in [85838].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.