Opened 17 years ago

Closed 17 years ago

#441 closed Bugs (Invalid)

shared_ptr_basic_tests warnings on linux

Reported by: nobody Owned by: Peter Dimov
Milestone: Component: smart_ptr
Version: None Severity:
Keywords: Cc:

Description

1. warning: `struct X' has virtual 
   functions but non-virtual destructor
   Resolution: add virtual keyword to destructor
2. warning: `struct Y' has virtual 
   functions but non-virtual destructor
   Resolution: same as above

Change History (2)

comment:1 by redi, 17 years ago

Logged In: YES 
user_id=426241

The right fix is to add -Wno-non-virtual-dtor to the
compiler command.


comment:2 by Peter Dimov, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=305912

The lack of virtual destructor is part of what is being tested.
Note: See TracTickets for help on using tickets.