unknownbrackets / maxcso

Fast cso compressor
ISC License
390 stars 23 forks source link

cli: Silence -Wformat warnings #79

Closed orbea closed 1 year ago

orbea commented 1 year ago

With GCC-13.1.1 and clang-16.0.4.

cli/cli.cpp:475:51: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                        sprintf(temp, "%lld -> %lld bytes (%.0f%%)\n", total, written, ratio);
                                       ~~~~                            ^~~~~
                                       %ld
cli/cli.cpp:475:58: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
                        sprintf(temp, "%lld -> %lld bytes (%.0f%%)\n", total, written, ratio);
                                               ~~~~                           ^~~~~~~
                                               %ld