/in/foo.cc: In function 'void calc_1(int*, int, int*)':
/in/foo.cc:62:22: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(c));
^
/in/foo.cc: In function 'void calc_2(int*, int, int*)':
/in/foo.cc:77:22: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(c));
^