On 2/28/17 12:49 PM, Peter Bergner wrote:
> On 2/25/17 2:40 AM, Prathamesh Kulkarni wrote:
>> The attached patch deletes calls to strdup, strndup if it's
>> return-value is unused,
>> and same for realloc if the first arg is NULL.
> 
> Why limit ourselves to strdup and strndup?  Can't we do the same
> for all functions that are marked as const/pure since we know
> they have no side effects other than their return value?

Nevermind.  Marc reminded me in the PR that these are not const/pure
functions.

Peter


Reply via email to