Skip to content

Commit c53bfd1

Browse files
committed
Remove duplicated check for VS 2012
Signed-off-by: owentou <[email protected]>
1 parent 8d80cbb commit c53bfd1

File tree

1 file changed

+2
-6
lines changed
  • api/include/opentelemetry/common

1 file changed

+2
-6
lines changed

api/include/opentelemetry/common/macros.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@
1919
# define OPENTELEMETRY_MAYBE_UNUSED __attribute__((unused))
2020
#elif defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
2121
# define OPENTELEMETRY_MAYBE_UNUSED __attribute__((unused))
22-
#elif defined(_MSC_VER) && _MSC_VER >= 1700 // vs 2012 or higher
23-
# if _MSC_VER >= 1910 && defined(_MSVC_LANG) && _MSVC_LANG >= 201703L
24-
# define OPENTELEMETRY_MAYBE_UNUSED [[maybe_unused]]
25-
# else
26-
# define OPENTELEMETRY_MAYBE_UNUSED
27-
# endif
22+
#elif (defined(_MSC_VER) && _MSC_VER >= 1910) && (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
23+
# define OPENTELEMETRY_MAYBE_UNUSED [[maybe_unused]]
2824
#else
2925
# define OPENTELEMETRY_MAYBE_UNUSED
3026
#endif

0 commit comments

Comments
 (0)