Skip to content

Commit 8dfd236

Browse files
committed
Cleanup
1 parent 3f98b54 commit 8dfd236

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

include/fmt/format.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
#ifndef FMT_MODULE
5050
# include <stdlib.h> // malloc, free
5151
# include <string.h> // memcpy
52+
# include <stdint.h> // uint32_t
5253

5354
# include <cmath> // std::signbit
5455
# include <cstddef> // std::byte
55-
# include <cstdint> // uint32_t
5656
# include <limits> // std::numeric_limits
5757
# if defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI)
5858
// Workaround for pre gcc 5 libstdc++.
@@ -148,12 +148,6 @@
148148
# define FMT_CONSTEXPR_STRING
149149
#endif
150150

151-
#if FMT_MSC_VERSION
152-
# define FMT_MSC_WARNING(...) __pragma(warning(__VA_ARGS__))
153-
#else
154-
# define FMT_MSC_WARNING(...)
155-
#endif
156-
157151
// GCC 4.9 doesn't support qualified names in specializations.
158152
namespace std {
159153
template <typename T> struct iterator_traits<fmt::basic_appender<T>> {
@@ -221,7 +215,6 @@ namespace detail {
221215

222216
inline auto clz(uint32_t x) -> int {
223217
FMT_ASSERT(x != 0, "");
224-
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
225218
unsigned long r = 0;
226219
_BitScanReverse(&r, x);
227220
return 31 ^ static_cast<int>(r);
@@ -230,7 +223,6 @@ inline auto clz(uint32_t x) -> int {
230223

231224
inline auto clzll(uint64_t x) -> int {
232225
FMT_ASSERT(x != 0, "");
233-
FMT_MSC_WARNING(suppress : 6102) // Suppress a bogus static analysis warning.
234226
unsigned long r = 0;
235227
# ifdef _WIN64
236228
_BitScanReverse64(&r, x);

0 commit comments

Comments
 (0)