From 3d5284109ee45c09701b024070e3ccd0967e0e91 Mon Sep 17 00:00:00 2001 From: Dwight Date: Mon, 18 Aug 2014 14:41:22 -0400 Subject: [PATCH] warning --- src/bson/endian.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bson/endian.h b/src/bson/endian.h index 2e4a468..da24ffd 100644 --- a/src/bson/endian.h +++ b/src/bson/endian.h @@ -6,7 +6,9 @@ namespace _bson { // no PDP or anything like that at the moment, just big/little. //const bool big = true; +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wstring-compare" +#endif const bool big = ((unsigned short&)"a") >= 0x8000; // todo add right intrinsics for gcc