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

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

Issue 2714053003: Fix GCC build for target 'all' (Closed)
Patch Set: #if defined(__GNUC__) 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..0d56cfdf39a36e570baba308cce971e092eef9a8 100644
--- a/net/quic/core/congestion_control/windowed_filter.h
+++ b/net/quic/core/congestion_control/windowed_filter.h
@@ -90,7 +90,14 @@ class WindowedFilter {
if (Compare()(new_sample, estimates_[1].sample)) {
estimates_[1] = Sample(new_sample, new_time);
estimates_[2] = estimates_[1];
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-overflow"
+#endif
} else if (Compare()(new_sample, estimates_[2].sample)) {
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif
estimates_[2] = Sample(new_sample, new_time);
}
« no previous file with comments | « net/http2/hpack/decoder/hpack_block_decoder_test.cc ('k') | remoting/host/security_key/fake_security_key_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698