Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add printf format checking attribute to report_error #227
On gcc and clang, add
Note: clang warns
Plus fixes for bugs exposed by this change:
On gcc and clang, add __attribute__((__format__)) checking to the report_error function. Cast faulting addresses to uintptr_t for formatting as 0x%08lx - this won't work on LLP64, but Win64 uses SEH anyway. Fix swapped si_code/si_addr (& si_band) format arguments. Add missing %s to format diagnostic information.