From c655293cadc121581b0b964f2f55f9f80fa51c40 Mon Sep 17 00:00:00 2001 From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 Subject: [PATCH] app: fix build with GCC 4.8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit GCC 4.8 was producing this error: argument to ‘sizeof’ in ‘strncmp’ call is the same expression as the second source; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] Signed-off-by: Intel --- app/test/test_cmdline_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cmdline_string.c b/app/test/test_cmdline_string.c index 7b358cf0fe..84a82cee62 100644 --- a/app/test/test_cmdline_string.c +++ b/app/test/test_cmdline_string.c @@ -383,7 +383,7 @@ test_parse_string_valid(void) return -1; } if (strncmp(buf, string_elt_strs[i].result, - sizeof(string_elt_strs[i].result)) != 0) { + sizeof(buf)) != 0) { printf("Error: result mismatch!\n"); return -1; } -- 2.20.1