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

Unified Diff: src/trusted/platform_qualify/arch/x86/vcpuid.c

Issue 1495033006: Fix a -Wunused-function warning with win/clang. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/platform_qualify/arch/x86/vcpuid.c
diff --git a/src/trusted/platform_qualify/arch/x86/vcpuid.c b/src/trusted/platform_qualify/arch/x86/vcpuid.c
index 9d123062bbedd88c67bd8fa76ee27f8f7b592002..93c1f5b17a9f471a3f3cc9cb1985d1cde19809cc 100644
--- a/src/trusted/platform_qualify/arch/x86/vcpuid.c
+++ b/src/trusted/platform_qualify/arch/x86/vcpuid.c
@@ -490,6 +490,7 @@ static int DoTest(int (*thetest)(void), const char *s) {
# error Please specify platform as NACL_LINUX, NACL_OSX or NACL_WINDOWS
#endif
+#if !(NACL_WINDOWS && (NACL_BUILD_SUBARCH == 64))
Roland McGrath 2015/12/05 11:07:46 It would be better to factor out the caller code t
Nico 2015/12/05 15:35:38 Done, but seems somewhat out of scope for this par
static int DoCPUFeatureTest(NaClCPUFeaturesX86 *features,
NaClCPUFeatureX86ID id,
int (*thetest)(void)) {
@@ -498,6 +499,7 @@ static int DoCPUFeatureTest(NaClCPUFeaturesX86 *features,
else
return 0;
}
+#endif /* 64-bit Windows */
static void PrintFail(const char *why) {
fprintf(stderr, "ERROR: %s.\n", why);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698