Boost logo

Boost Users :

Subject: [Boost-users] [test] warning with gcc 4.3.3
From: Sakharuk, Vladimir (vladimir.sakharuk_at_[hidden])
Date: 2010-05-10 19:02:26


Hello All,
 
There is a warning when compiling unit test with gcc 4.3.3:

/app/local/pkgs/gcc/4.3.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/
../../../../include/c++/4.3.3/bits/stl_algo.h: In function 'char*
boost::debug::<unnamed>::prepare_window_title(const
boost::debug::dbg_startup_info&)':
/app/local/pkgs/gcc/4.3.3/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/
../../../../include/c++/4.3.3/bits/stl_algo.h:190: warning: array
subscript is above array bounds

Is there a way to remove warning programmatically?

Regards Vlad.

Boost version is 1.42.0.

Minimal program to reproduce is:

#define BOOST_TEST_MAIN
#include <boost/test/included/unit_test.hpp>
using namespace boost::unit_test;

#define BOOST_TEST_MODULE some_buffer_test

BOOST_AUTO_TEST_SUITE( some_buffer_suite )

BOOST_AUTO_TEST_SUITE_END()

===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net