No unused variable messages about std::unique_ptr|shared_ptr|auto_ptr (#4355)