tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: swscanf() causing Memory Fault



>>> +   (void)memset(WCIO_GET(&f), 0, sizeof(struct wchar_io_data));
>> Why cast a discarded return code to void?  That seems overly fussy to me.
> We've been doing this since ~forever: It's to tell lint(1) that we're
> aware of the fact that menset() returns something, and that we ignore
> it on purpose.

...and it's been one of the perennial holy wars whether this
constitutes worthless pedantry (or worse) for the sake of a useless
noise source or valuable human assist to a useful tool.  Please let's
try to avoid another round of it!

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index