Uh oh!
There was an error while loading. Please reload this page.
Promote warnings to exceptions in *scanf() functions - #4993
Conversation
Uh oh!
There was an error while loading. Please reload this page.
9d9bf63 to
6b17e19Comparenikic
commented
Dec 10, 2019
Any particular reason to exclude that one? Is the idea that everything else would still get populated and the extra args just ignored? |
kocsismate
commented
Dec 10, 2019
Yes, that's it. I just didn't want to be too aggressive than what is enough. However, I am happy to include this case as well if you see that it's worth. |
Uh oh!
There was an error while loading. Please reload this page.
nikic
commented
Dec 10, 2019
https://3v4l.org/6MW6Y => Based on the behavior here (if there are too many vars, nothing gets populated), I'd say this should definitely also throw. |
kocsismate
commented
Dec 10, 2019
OK, it's a convincing argument for sure. The |
6b17e19 to
8b2570eComparekocsismate
commented
Dec 10, 2019
Closing via 33f7cab |
Split off from #4937
The case when more variables than format specifiers are passed is left as a warning.