aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-08-07 23:51:33 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-08-21 22:30:47 +0300
commitff0c6ccf6b526cbf3a17230541ba0793ac391d0b (patch)
tree31a16f063d68050ffde68478dfe69e9212205e6b /tests
parent2d750952a5849356eb1c1c42f9e33a4546fc0cd5 (diff)
downloadlibunwind-ff0c6ccf6b526cbf3a17230541ba0793ac391d0b.tar.gz
Remove unneeded length modifier from suppressed match in sscanf() format in tests/crasher.c
GCC is complaining about the `%*jx' match in sscanf() format string. Replace it with `%*x'; sscanf() will identically match an unsigned hexadecimal integer without the length modifier. crasher.c: In function 'write_maps': crasher.c:30:9: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat]
Diffstat (limited to 'tests')
-rw-r--r--tests/crasher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/crasher.c b/tests/crasher.c
index aa869763..9a005b9c 100644
--- a/tests/crasher.c
+++ b/tests/crasher.c
@@ -24,7 +24,7 @@ void write_maps(char *fname)
while (fgets(buf, sizeof(buf), maps))
{
- if (sscanf(buf, "%jx-%*jx %*c%*c%c%*c %*x %*s %*d /%126[^\n]", &addr, &exec, path+1) != 3)
+ if (sscanf(buf, "%jx-%*x %*c%*c%c%*c %*x %*s %*d /%126[^\n]", &addr, &exec, path+1) != 3)
continue;
if (exec != 'x')