From a0366fde4cadbdce03540c683611587dbcfb3c48 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 14 Oct 2021 13:28:05 +0100 Subject: ash: silence compiler warnings On 64-bit systems mingw-w64 defines pid_t as a 64-bit integer so some printf calls caused compiler warnings. --- include/libbb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 098619305..9aff42e67 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -295,6 +295,12 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN #define LL_FMT "ll" #endif +#if ENABLE_PLATFORM_MINGW32 && defined(_WIN64) +#define PID_FMT "I64" +#else +#define PID_FMT +#endif + /* Large file support */ /* Note that CONFIG_LFS=y forces bbox to be built with all common ops * (stat, lseek etc) mapped to "largefile" variants by libc. -- cgit v1.2.3-55-g6feb