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

Unified Diff: tests/rollback_index_mock.c

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Integrated trunk changes. Created 10 years, 6 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 | « tests/crc32_test.c ('k') | tests/sha_tests.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/rollback_index_mock.c
diff --git a/tests/rollback_index_mock.c b/tests/rollback_index_mock.c
index 6c629934e0f84ac3d26d250e3a46069e1f38c5e8..f12402bd57fd480a5b3cddf3363776842ed13719 100644
--- a/tests/rollback_index_mock.c
+++ b/tests/rollback_index_mock.c
@@ -8,7 +8,6 @@
#include "rollback_index.h"
#include "tss_constants.h"
-#include <stdint.h>
#include <stdio.h>
uint16_t g_firmware_key_version = 0;
@@ -16,6 +15,9 @@ uint16_t g_firmware_version = 0;
uint16_t g_kernel_key_version = 0;
uint16_t g_kernel_version = 0;
+/* disable MSVC warnings on unused arguments */
+__pragma(warning (disable: 4100))
+
uint32_t SetupTPM(int mode, int developer_flag) {
#ifndef NDEBUG
debug("Rollback Index Library Mock: TPM initialized.\n");
« no previous file with comments | « tests/crc32_test.c ('k') | tests/sha_tests.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698