warnings with msys2 + mingw-w64
with msys2+mingw-w64, there are some warnings :
../src/fccache.c: In function 'FcCacheFini':
../src/fccache.c:811:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'fc_atomic_int_t' {aka 'long int'} [-Wformat=]
811 | printf("Fontconfig error: not freed %p (dir: %s, refcount %d)\n", s->cache, FcCacheDir(s->cache), s->ref.count);
| ~^ ~~~~~~~~~~~~
| | |
| int fc_atomic_int_t {aka long int}
| %ld
../src/fccache.c:811:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'fc_atomic_int_t' {aka 'long int'} [-Wformat=]
811 | printf("Fontconfig error: not freed %p (dir: %s, refcount %d)\n", s->cache, FcCacheDir(s->cache), s->ref.count);
| ~^ ~~~~~~~~~~~~
| | |
| int fc_atomic_int_t {aka long int}
| %ld
../src/fccache.c: In function 'FcDirChecksum':
../src/fccache.c:1160:56: warning: unknown conversion type character 'l' in format [-Wformat=]
1160 | "Fontconfig: SOURCE_DATE_EPOCH: strtoull: %s: %llu\n",
| ^
../src/fccache.c:1160:8: warning: too many arguments for format [-Wformat-extra-args]
1160 | "Fontconfig: SOURCE_DATE_EPOCH: strtoull: %s: %llu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fccache.c:1160:56: warning: unknown conversion type character 'l' in format [-Wformat=]
1160 | "Fontconfig: SOURCE_DATE_EPOCH: strtoull: %s: %llu\n",
| ^
../src/fccache.c:1160:8: warning: too many arguments for format [-Wformat-extra-args]
1160 | "Fontconfig: SOURCE_DATE_EPOCH: strtoull: %s: %llu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fccache.c:1167:65: warning: unknown conversion type character 'l' in format [-Wformat=]
1167 | "Fontconfig: SOURCE_DATE_EPOCH must be <= %lu but saw: %llu\n",
| ^
../src/fccache.c:1167:8: warning: too many arguments for format [-Wformat-extra-args]
1167 | "Fontconfig: SOURCE_DATE_EPOCH must be <= %lu but saw: %llu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fccache.c:1167:65: warning: unknown conversion type character 'l' in format [-Wformat=]
1167 | "Fontconfig: SOURCE_DATE_EPOCH must be <= %lu but saw: %llu\n",
| ^
../src/fccache.c:1167:8: warning: too many arguments for format [-Wformat-extra-args]
1167 | "Fontconfig: SOURCE_DATE_EPOCH must be <= %lu but saw: %llu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
also :
../src/fcstat.c: In function 'FcIsFsMmapSafe':
../src/fcstat.c:428:18: warning: 'statb.is_remote_fs' may be used uninitialized in this function [-Wmaybe-uninitialized]
428 | return !statb.is_remote_fs;
| ~~~~~^~~~~~~~~~~~~