Skip to content

Commit

Permalink
Fixed gcc effc++ warning in dtoa.h
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Aug 9, 2014
1 parent a7762a3 commit 0d91564
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/rapidjson/internal/dtoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
namespace rapidjson {
namespace internal {

#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif

struct DiyFp {
DiyFp() {}

Expand Down Expand Up @@ -408,6 +413,10 @@ inline char* dtoa(double value, char* buffer) {
}
}

#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif

} // namespace internal
} // namespace rapidjson

Expand Down

0 comments on commit 0d91564

Please sign in to comment.