Skip to content

Commit

Permalink
Silence gcc 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Feb 22, 2016
1 parent b56a0a1 commit 3f41249
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lm/interpolate/tune_instances.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@

namespace lm { namespace interpolate {

// gcc 4.6 complains about uninitialized when sort code is generated for a 4-byte POD. But that sort code is never used.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
bool Extension::operator<(const Extension &other) const {
if (instance != other.instance)
return instance < other.instance;
Expand All @@ -51,6 +54,7 @@ bool Extension::operator<(const Extension &other) const {
return model < other.model;
return false;
}
#pragma GCC diagnostic pop

namespace {

Expand Down

0 comments on commit 3f41249

Please sign in to comment.