Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: net/quic/core/congestion_control/windowed_filter.h

Issue 2714053003: Fix GCC build for target 'all' (Closed)
Patch Set: Remove auto Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/core/congestion_control/windowed_filter.h
diff --git a/net/quic/core/congestion_control/windowed_filter.h b/net/quic/core/congestion_control/windowed_filter.h
index 451164950b0c43caaa4af909ffff7746eceefc03..631d5b226d09637764872184c71fa5ee568c239b 100644
--- a/net/quic/core/congestion_control/windowed_filter.h
+++ b/net/quic/core/congestion_control/windowed_filter.h
@@ -90,7 +90,10 @@ class WindowedFilter {
if (Compare()(new_sample, estimates_[1].sample)) {
estimates_[1] = Sample(new_sample, new_time);
estimates_[2] = estimates_[1];
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-overflow"
} else if (Compare()(new_sample, estimates_[2].sample)) {
+#pragma GCC diagnostic pop
estimates_[2] = Sample(new_sample, new_time);
}

Powered by Google App Engine
This is Rietveld 408576698