From fb41673532aade4b453535f67f6f7eb575411ecf Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal Date: Wed, 18 Oct 2017 12:52:49 -0700 Subject: [PATCH] [test] Fix printf format specifier for size_t. Suppress compiler warnings. --- test/drive_shlexer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/drive_shlexer.cc b/test/drive_shlexer.cc index 67d07b7c..7f7d08db 100644 --- a/test/drive_shlexer.cc +++ b/test/drive_shlexer.cc @@ -91,7 +91,7 @@ int main(int argc, char *argv[]) if (lexer.split(sresult, map())) { printf("split:\n"); for (size_t lpc = 0; lpc < sresult.size(); lpc++) { - printf(" %d -- %s\n", lpc, sresult[lpc].c_str()); + printf(" %zu -- %s\n", lpc, sresult[lpc].c_str()); } }