uninitialised in get_sem_count(). This makes it quiet. I am not sure
whether get_sem_count() was correct or not without it (probably was
OK).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8697
union vki_semun arg;
SysRes res;
+ /* Doesn't actually seem to be necessary, but gcc-4.4.0 20081017
+ (experimental) otherwise complains that the use in the return
+ statement below is uninitialised. */
+ buf.sem_nsems = 0;
+
arg.buf = &buf;
# ifdef __NR_semctl
# else
res = VG_(do_syscall5)(__NR_ipc, 3 /* IPCOP_semctl */, semid, 0,
VKI_IPC_STAT, (UWord)&arg);
-# endif
+# endif
if (res.isError)
return 0;