[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 18/27] Remove unneeded length modifier from sup
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 18/27] Remove unneeded length modifier from suppressed match in sscanf() format in tests/crasher.c |
Date: |
Wed, 22 Aug 2012 14:28:44 +0300 |
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]
---
tests/crasher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/crasher.c b/tests/crasher.c
index aa86976..9a005b9 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')
--
1.7.9.5
- [Libunwind-devel] [PATCH 05/27] Ignore _fbss, _fdata, _ftext and _gp symbols on MIPS, (continued)
- [Libunwind-devel] [PATCH 05/27] Ignore _fbss, _fdata, _ftext and _gp symbols on MIPS, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 08/27] Update .gitignore, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 11/27] MIPS: fix symbol naming for `mips_lock', `mips_local_resume', and `mips_local_addr_space_init', Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 15/27] MIPS: implement dwarf_to_unw_regnum() macro without table, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 13/27] Allow for architecture specific dwarf_to_unw_regnum(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 12/27] PPC: do not export dwarf_to_unw_regnum_map, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 10/27] Stop using nonportable echo arguments in tests, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 14/27] ARM: implement dwarf_to_unw_regnum() macro without table, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 17/27] Use constants for ELF magic bytes in _UCD_create.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 23/27] Avoid -Wunused-value warning in tests/Gtest-exc.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 18/27] Remove unneeded length modifier from suppressed match in sscanf() format in tests/crasher.c,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 19/27] Fix memory leaks in unw_create_addr_space() wrong-endian error paths, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 16/27] Fix plain return from main() in tests/test-async-sig.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 22/27] test-resume-sig-rt: test unw_resume() in presence of "realtime" signal frame, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 25/27] Place `inline' at beginning of declaration of invalidate_edi(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 20/27] ARM: fix non-signal-frame local unw_resume() due to compiler optimization cleverness, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 21/27] ARM: fix with-signal-frame local unw_resume(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 24/27] Flush icache with __builtin___clear_cache() in tests when compiling with GCC, Tommi Rantala, 2012/08/22