> From: Keith Marshall <keith****@users*****> > Date: Tue, 26 Jan 2021 19:50:04 +0000 > > > D:\usr\eli>gcc -Wall -pedantic -c tsnprintf.c > > When building GCC, I configure with: > > --disable-build-format-warnings > > but that's a package-specific configuration option. For more general > use, you could try: > > D:\usr\eli>gcc -Wall -pedantic -Wno-pedantic-ms-format -c tsnprintf.c That shuts up the warning, thanks. > > One way of getting rid of this is to use _snprintf instead, but is > > there a cleaner way? > > I wouldn't recommend that: _snprintf() is *not* a drop-in replacement > for snprintf(), but __mingw_snprintf() might be a viable alternative; Using __mingw_snprintf instead of snprintf doesn't avoid the warning, though. Thanks.