Skip to content

Fix -Wformat

Vlad Zahorodnii requested to merge work/zzag/drm-wformat into master

QVector::count()'s return type is qsizetype. On a 64 bit platform, it's equivalent to qint64, so "%d" does not suffice.

There are two ways to fix it: use PRIdQSIZETYPE or switch to the stream operator. Since the warning format is not complex, this takes the latter approach.

Merge request reports

Loading