Ticket #8524: 8524.patch

File 8524.patch, 1.0 KB (added by Jeremiah Willcock, 9 years ago)

Patch for warnings

  • libs/serialization/src/basic_serializer_map.cpp

     
    4545    // attempt to insert serializer into it's map
    4646    const std::pair<map_type::iterator, bool> result =
    4747        m_map.insert(bs);
     48    (void)result; // Silence warning
    4849    // the following is commented out - rather than being just
    4950    // deleted as a reminder not to try this.
    5051
  • libs/serialization/src/basic_iarchive.cpp

     
    456456        int i = cid;
    457457        cobject_id_vector[i].bpis_ptr = bpis_ptr;
    458458        BOOST_ASSERT(new_cid == cid);
     459        (void)new_cid; // Avoid warning when NDEBUG is on
    459460    }
    460461    int i = cid;
    461462    cobject_id & co = cobject_id_vector[i];