git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8184f08
)
app: fix build with GCC 4.8
author
Intel
<intel.com>
Mon, 3 Jun 2013 00:00:00 +0000
(
00:00
+0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 17 Sep 2013 12:16:09 +0000
(14:16 +0200)
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
patch
|
blob
|
history
diff --git
a/app/test/test_cmdline_string.c
b/app/test/test_cmdline_string.c
index
7b358cf
..
84a82ce
100644
(file)
--- 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;
}