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

Unified Diff: ppapi/tests/test_file_io.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: ppapi/tests/test_file_io.cc
diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc
index 87839055feb9963692958d0a07062a00bc2d2c94..cf2d226498f5a2b113f22b0e97d8b50cff28ce2d 100644
--- a/ppapi/tests/test_file_io.cc
+++ b/ppapi/tests/test_file_io.cc
@@ -127,6 +127,7 @@ int32_t ReadToArrayEntireFile(PP_Instance instance,
return PP_OK;
}
+#if !defined(PPAPI_OS_WIN)
bool ReadEntireFileFromFileHandle(int fd, std::string* data) {
if (lseek(fd, 0, SEEK_SET) < 0)
return false;
@@ -141,6 +142,7 @@ bool ReadEntireFileFromFileHandle(int fd, std::string* data) {
} while (ret > 0);
return ret == 0;
}
+#endif // !defined(PPAPI_OS_WIN)
int32_t WriteEntireBuffer(PP_Instance instance,
pp::FileIO* file_io,

Powered by Google App Engine
This is Rietveld 408576698