Skip to main content


Welcome Sam James as #curl committer 1217: github.com/curl/curl/pull/1229… (yes, that's the silliest gcc warning introduced in a long time IMHO)
#curl
in reply to daniel:// stenberg://

Why's it a silly warning? Because the amount of memory being allocated is the same? 480 count of 1 byte vs 1 count of 480 bytes? I guess it doesn't make a difference in practice, but it still seems nice to have the function call match the prototype arguments, right?
in reply to Jonathan Yu

@jawnsy because it does not help. Because we have written fine code like this for decades already. Pointless.
in reply to daniel:// stenberg://

@jawnsy
I guess it's only silly if you know the implementation and *know* it makes no difference. Even then, the implementation might change, breaking your code