Skip to content

Commit 5b5e7d1

Browse files
committed
ignore warnings for gcc for specific code path
Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
1 parent 72f6c09 commit 5b5e7d1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

include/jsoncons/utility/bigint.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ class bigint_storage : private std::allocator_traits<Allocator>:: template rebin
287287
::new (&inlined_) inlined_storage();
288288
}
289289

290+
#if defined(__GNUC__) && !defined(__clang__)
291+
#pragma GCC diagnostic push
292+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
293+
#endif
294+
290295
bigint_storage(const bigint_storage& other)
291296
: word_allocator_type(other.get_allocator())
292297
{
@@ -300,6 +305,10 @@ class bigint_storage : private std::allocator_traits<Allocator>:: template rebin
300305
}
301306
}
302307

308+
#if defined(__GNUC__) && !defined(__clang__)
309+
#pragma GCC diagnostic pop
310+
#endif
311+
303312
bigint_storage(const bigint_storage& other, const Allocator& alloc)
304313
: word_allocator_type(alloc)
305314
{

0 commit comments

Comments
 (0)