On 03/12/2015 06:13 AM, Paolo Carlini wrote:
52718_red.C:1:22: warning: zero as null pointer constant
[-Wzero-as-null-pointer-constant]
  void* fun(void* a = 0);

52718_red.C:2:16: warning: zero as null pointer constant
[-Wzero-as-null-pointer-constant]
  void* f2 = fun();

OK, then your second patch is OK. But please add a comment that the code is there to avoid a redundant warning at the call site.

Jason


Reply via email to