Skip to content

Commit

Permalink
Remove duplicated check for VS 2012
Browse files Browse the repository at this point in the history
Signed-off-by: owentou <owentou@tencent.com>
  • Loading branch information
owent committed Jan 7, 2022
1 parent e2849ed commit 6d72128
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/include/opentelemetry/common/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@
# define OPENTELEMETRY_MAYBE_UNUSED __attribute__((unused))
#elif defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
# define OPENTELEMETRY_MAYBE_UNUSED __attribute__((unused))
#elif defined(_MSC_VER) && _MSC_VER >= 1700 // vs 2012 or higher
# if _MSC_VER >= 1910 && defined(_MSVC_LANG) && _MSVC_LANG >= 201703L
# define OPENTELEMETRY_MAYBE_UNUSED [[maybe_unused]]
# else
# define OPENTELEMETRY_MAYBE_UNUSED
# endif
#elif (defined(_MSC_VER) && _MSC_VER >= 1910) && (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
# define OPENTELEMETRY_MAYBE_UNUSED [[maybe_unused]]
#else
# define OPENTELEMETRY_MAYBE_UNUSED
#endif

0 comments on commit 6d72128

Please sign in to comment.