Skip to content

Commit

Permalink
warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight committed Aug 18, 2014
1 parent a583994 commit 3d52841
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bson/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d52841

Please sign in to comment.