return (enum target_signal)
(hostsig - 33 + (int) TARGET_SIGNAL_REALTIME_33);
else if (hostsig == 32)
+ // depending on the platform the first two and the third
+ // if branches here may be mutually exclusive, ignore any
+ // coverity warnings
+ // coverity[DEADCODE:FALSE]
return TARGET_SIGNAL_REALTIME_32;
else if (64 <= hostsig && hostsig <= 127)
return (enum target_signal)
if (!VG_(OSetWord_Contains)(iocb_table, (UWord)iocb)) {
VG_(OSetWord_Insert)(iocb_table, (UWord)iocb);
} else {
+ // @todo PJF this warns without callstack
VG_(dmsg)("Warning: Duplicate control block %p in aio_read\n",
(void *)(Addr)ARG1);
VG_(dmsg)("Warning: Ensure 'aio_return' is called when 'aio_read' has completed\n");
if (!VG_(OSetWord_Contains)(iocbv_table, (UWord)iocbv)) {
VG_(OSetWord_Insert)(iocbv_table, (UWord)iocbv);
} else {
+ // @todo PJF this warns without callstack
VG_(dmsg)("Warning: Duplicate control block %p in aio_readv\n",
(void *)(Addr)ARG1);
VG_(dmsg)("Warning: Ensure 'aio_return' is called when 'aio_readv' has completed\n");
UWord res,
UWord arg0, UWord arg1, UWord arg2 )
{
- if (res >= 0 && arg1 != 0) {
+ if (arg1 != 0) {
POST_MEM_WRITE( arg1, /* buf */
arg2 /* len */ );
}
adding a reference from tte to its hash position in tt. */
HTTno j;
HTTno k = HASH_TT(tteC->entry);
- vg_assert(k >= 0 && k < N_HTTES_PER_SECTOR);
+ vg_assert(k < N_HTTES_PER_SECTOR);
for (j = 0; j < N_HTTES_PER_SECTOR; j++) {
if (sec->htt[k] == tteno)
break;
/* we already tried line == 0; skip therefore. */
for (line = 1; line < OC_LINES_PER_SET; line++) {
if (ocacheL1->set[setno].line[line].tag == tag) {
- if (line == 1) {
+ switch (line) {
+ // with OC_LINES_PER_SET equal to 2 this is the only possible case
+ case 1:
stats_ocacheL1_found_at_1++;
- } else {
+ break;
+#if OC_LINES_PER_SET > 2
+ default:
stats_ocacheL1_found_at_N++;
+ break;
+#endif
}
if (UNLIKELY(0 == (ocacheL1_event_ctr++
& ((1<<OC_MOVE_FORWARDS_EVERY_BITS)-1)))) {
# endif
else if (ty == MPI_LONG_LONG_INT) fprintf(f,"LONG_LONG_INT");
# if defined(MPI_LONG_LONG)
+ // platform dependant? MPI_LONG_LONG and MPI_UNSIGNED_LONG_LONG can be the same
+ // coverity[DEADCODE:FALSE]
else if (ty == MPI_LONG_LONG) fprintf(f,"LONG_LONG");
# endif
# if defined(MPI_UNSIGNED_LONG_LONG)