Closed
Description
Compilation produces errors:
CC ipc.lo
ipc.c: In function 'ipc_read_shm':
ipc.c:261:26: error: initialization makes integer from pointer without a cast [-Werror]
for (int i = 0, pshm = ipcinfo_shm; i < n; i++, pshm++) {
^
ipc.c:263:22: error: invalid type argument of '->' (have 'int')
shm_bytes += pshm->shm_segsz;
^
ipc.c:251:18: error: unused variable 'pshm' [-Werror=unused-variable]
ipcinfo_shm_t *pshm;
^
cc1: all warnings being treated as errors
make: 1254-004 The error code from the last command is 1.