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

Unified Diff: chrome/app/image_pre_reader_win.cc

Issue 1255073002: clang/win: Fix most -Wunused-function warnings in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac Created 5 years, 5 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: chrome/app/image_pre_reader_win.cc
diff --git a/chrome/app/image_pre_reader_win.cc b/chrome/app/image_pre_reader_win.cc
index 6c5ef6bcb924e248b39d23d5203cac2d0a261d7e..9998a036905a03eb32e3add6572d958d2fcd4791 100644
--- a/chrome/app/image_pre_reader_win.cc
+++ b/chrome/app/image_pre_reader_win.cc
@@ -28,10 +28,8 @@ const size_t kMinHeaderBufferSize = 0x400;
// A handy symbolic constant.
const size_t kOneHundredPercent = 100;
-void StaticAssertions() {
- COMPILE_ASSERT(kMinHeaderBufferSize >= sizeof(IMAGE_DOS_HEADER),
- min_header_buffer_size_at_least_as_big_as_the_dos_header);
-}
+static_assert(kMinHeaderBufferSize >= sizeof(IMAGE_DOS_HEADER),
+ "kMinHeaderBufferSize must be at least as big as the dos header");
// This struct provides a deallocation functor for use with scoped_ptr<T>
// allocated with ::VirtualAlloc().

Powered by Google App Engine
This is Rietveld 408576698