Opened 15 years ago

Closed 15 years ago

#1415 closed Feature Requests (worksforme)

Warnings need suppression in Boost.Test

Reported by: Paul A. Bristow Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost 1.34.1 Severity: Optimization
Keywords: test warning suppression Cc:

Description

Using

#include <boost/test/included/test_exec_monitor.hpp>

for various BOOST_CHECKs produces a blizzard of warnings at MSVC level 4.

I have added this to my .cpp file

#if defined (_MSC_VER) # pragma warning(disable : 4310) cast truncates constant value # pragma warning(disable : 4512) assignment operator could not be generated # pragma warning(disable : 4702) unreachable code #endif

But it would be better to suppress these 'at source' with push'n'pops in individual modules?

# pragma warning(push)

# pragma warning(pop)

Thanks.

Change History (2)

comment:1 by Paul A. Bristow, 15 years ago

Correction - is Boost.Test *Trunk development* (not 1.34.1)

Sorry.

Paul

comment:2 by Gennadiy Rozental, 15 years ago

Resolution: worksforme
Status: newclosed
  1. I can't reproduce the issue neither with msvc 7.1 nor msvc 8.0. The only couple warnings I see are in io_saver.hpp and I am not in a position to disable those.
  1. test_exec_monitor is deprocated. I recomment switching to included/unit_test.hpp
Note: See TracTickets for help on using tickets.