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? Peter