mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 21:33:19 -07:00
Fix gcc10 compiler warnings
- fix attribute format for MINGW in tinycbor/cbor.h - add pragma to prevent "unaligned pointer" warning in cmddata.c. We know what we are doing there. - whitespace fixes
This commit is contained in:
parent
ad326d84ad
commit
8ac5d5cba1
2 changed files with 59 additions and 52 deletions
|
@ -581,7 +581,11 @@ enum CborPrettyFlags {
|
|||
|
||||
typedef CborError (*CborStreamFunction)(void *token, const char *fmt, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__((__format__(printf, 2, 3)))
|
||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
__attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 3)))
|
||||
#else
|
||||
__attribute__((__format__(printf, 2, 3)))
|
||||
#endif
|
||||
#endif
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue