This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Is this a bug? Why set the minimum width this way, especially with
-Werror
activated?%1d
is never different from%d
: setting the minimum width to 1 is redundant. http://www.kurabiyeaski.com/ym/201501/a_Meaning_of__1d_in_printf_statement_in__c__.html).%.1d
would also be redundant: it sets the minimum number of digits to 1 (http://man7.org/linux/man-pages/man3/printf.3.html), but %d already always prints at least 1 digit and maybe a sign.Thanks to Peter Cordes for helping me put this issue together.