Skip to content

Commit

Permalink
MSVC's <atomic> seems to cause spurious C4702 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerman committed Sep 10, 2016
1 parent f9909fc commit 0cc604c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/object.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#if !defined(__OBJECT_H)
#define __OBJECT_H

#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4702) // warning C4702: Unreachable code
#endif
#include <atomic>
#if defined(_MSC_VER)
# pragma warning(pop)
#endif
#include "constructor_stats.h"

/// Reference counted object base class
Expand Down

0 comments on commit 0cc604c

Please sign in to comment.