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

Unified Diff: net/disk_cache/simple/simple_util.cc

Issue 203013002: Fix "unreachable code" warnings (MSVC warning 4702) in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_util.cc
===================================================================
--- net/disk_cache/simple/simple_util.cc (revision 257821)
+++ net/disk_cache/simple/simple_util.cc (working copy)
@@ -28,16 +28,18 @@
#if defined(OS_ANDROID)
*out_sec = st.st_mtime;
*out_nsec = st.st_mtime_nsec;
+ return true;
#elif defined(OS_LINUX)
*out_sec = st.st_mtim.tv_sec;
*out_nsec = st.st_mtim.tv_nsec;
+ return true;
#elif defined(OS_MACOSX) || defined(OS_IOS) || defined(OS_BSD)
*out_sec = st.st_mtimespec.tv_sec;
*out_nsec = st.st_mtimespec.tv_nsec;
+ return true;
#else
return false;
#endif
- return true;
}
} // namespace
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698