Snippets for hercules-emulator 3.13 from Fedora s390x
Sourced from https://kojipkgs.fedoraproject.org/packages/hercules/3.13/23.fc45/data/logs/s390x/build.log.
-
hthreads.h:157:37: warning: cast between incompatible function types from 'int (*)(DEVBLK *, int, char **)' to 'void * (*)(void *)' [-Wcast-function-type] 157 | ptt_pthread_create(ptid,pat,(THREAD_FUNC*)&(fn),arg,(nm),PTT_LOC) | ^ -
bldcfg.c:127:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 127 | while (*p && isspace(*p)) p++; if (!*p) break; // find start of arg | ^~~~~ -
bldcfg.c:133:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 133 | while (*p && !isspace(*p) && *p != '\"' && *p != '\'') p++; if (!*p) break; // find end of arg | ^~~~~ -
hmacros.h:664:5: warning: ignoring return value of 'setresuid' declared with attribute 'warn_unused_result' [-Wunused-result] 664 | setresuid(sysblk.ruid,sysblk.ruid,sysblk.euid); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hmacros.h:665:5: warning: ignoring return value of 'setresgid' declared with attribute 'warn_unused_result' [-Wunused-result] 665 | setresgid(sysblk.rgid,sysblk.rgid,sysblk.egid); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hmacros.h:670:5: warning: ignoring return value of 'setresuid' declared with attribute 'warn_unused_result' [-Wunused-result] 670 | setresuid(sysblk.suid,sysblk.suid,sysblk.ruid); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hmacros.h:675:5: warning: ignoring return value of 'setresuid' declared with attribute 'warn_unused_result' [-Wunused-result] 675 | setresuid(sysblk.ruid,sysblk.ruid,sysblk.suid); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
fillfnam.c:108:5: warning: '__strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] 108 | strncpy(path, part2, strlen(part2)-strlen(filename)); | ^ -
dat.h:1243:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 1243 | tl = rte & REGTAB_TL;
-
dat.h:1296:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 1296 | tl = rte & REGTAB_TL;
-
cpu.c:1643:21: warning: cast between incompatible function types from 'U64 (*)(int, U64, REGS *)' {aka 'long unsigned int (*)(int, long unsigned int, REGS *)'} to 'int (*)()' [-Wcast-function-type] 1643 | regs.trace_br = (func)&ARCH_DEP(trace_br); | ^ -
general1.c:397:25: warning: cast between incompatible function types from 'func' {aka 'int (*)()'} to 'U64 (*)(int, U64, REGS *)' {aka 'long unsigned int (*)(int, long unsigned int, REGS *)'} [-Wcast-function-type] 397 | regs->CR(12) = ((ARCH_DEP(trace_br_func))regs->trace_br) | ^ -
general1.c:470:25: warning: cast between incompatible function types from 'func' {aka 'int (*)()'} to 'U64 (*)(int, U64, REGS *)' {aka 'long unsigned int (*)(int, long unsigned int, REGS *)'} [-Wcast-function-type] 470 | regs->CR(12) = ((ARCH_DEP(trace_br_func))regs->trace_br) | ^ -
general1.c:1765:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 1765 | if (sizeof(unsigned int) >= 8) | ^ -
control.c:5872:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 5872 | channelset_reset(tregs); | ^~~~~~~~~~~~~~~~~~~~~~~ -
hthreads.h:157:37: warning: cast between incompatible function types from 'void (*)(U16 *)' {aka 'void (*)(short unsigned int *)'} to 'void * (*)(void *)' [-Wcast-function-type] 157 | ptt_pthread_create(ptid,pat,(THREAD_FUNC*)&(fn),arg,(nm),PTT_LOC) | ^ -
hthreads.h:157:37: warning: cast between incompatible function types from 'void (*)(SCCB_SCEDIO_BK *)' {aka 'void (*)(struct _SCCB_SCEDIO_BK *)'} to 'void * (*)(void *)' [-Wcast-function-type] 157 | ptt_pthread_create(ptid,pat,(THREAD_FUNC*)&(fn),arg,(nm),PTT_LOC) | ^ -
diagnose.c:639:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 639 | if(!(sysblk.diag8cmd & DIAG8CMD_ENABLE)) | ^~ -
vm.c:860:28: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 860 | lastccw = (dev->csw[1] << 16) || (dev->csw[2] << 8) | ~~~~~~~~~~~~~^~~~~~ -
vm.c:860:51: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 860 | lastccw = (dev->csw[1] << 16) || (dev->csw[2] << 8) | ~~~~~~~~~~~~~^~~~~ -
vm.c:864:29: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 864 | residual = (dev->csw[6] << 8) || dev->csw[7]; | ~~~~~~~~~~~~~^~~~~ -
vm.c:868:37: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 868 | lastccw = (dev->scsw.ccwaddr[0] << 24) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -
vm.c:869:42: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 869 | || (dev->scsw.ccwaddr[1] << 16) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~ -
vm.c:870:42: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 870 | || (dev->scsw.ccwaddr[2] << 8) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
vm.c:874:36: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 874 | residual = (dev->scsw.count[0] << 8) || dev->scsw.count[1]; | ~~~~~~~~~~~~~~~~~~~~^~~~~ -
hthreads.h:157:37: warning: cast between incompatible function types from 'void (*)(void *)' to 'void * (*)(void *)' [-Wcast-function-type] 157 | ptt_pthread_create(ptid,pat,(THREAD_FUNC*)&(fn),arg,(nm),PTT_LOC) | ^ -
float.c:2876:28: warning: taking the absolute value of unsigned type 'U32' {aka 'unsigned int'} has no effect [-Wabsolute-value] 2876 | if ((xj == xi) || (abs(xj - xi) == 1)) { | ^~~ -
float.c:5345:36: warning: taking the absolute value of unsigned type 'U64' {aka 'long unsigned int'} has no effect [-Wabsolute-value] 5345 | if ((xj == xi) || (abs(xj - xi) == 1)) { | ^~~ -
float.c:5345:36: warning: absolute value function 'abs' given an argument of type 'U64' {aka 'long unsigned int'} but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] -
sie.c:283:36: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 283 | GUESTREGS = calloc (sizeof(REGS), 1); | ^~~~ -
sie.c:304:31: warning: cast between incompatible function types from 'U64 (*)(int, U64, REGS *)' {aka 'long unsigned int (*)(int, long unsigned int, REGS *)'} to 'int (*)()' [-Wcast-function-type] 304 | GUESTREGS->trace_br = (func)&z900_trace_br; | ^ -
hthreads.h:157:37: warning: cast between incompatible function types from 'void * (*)(int)' to 'void * (*)(void *)' [-Wcast-function-type] 157 | ptt_pthread_create(ptid,pat,(THREAD_FUNC*)&(fn),arg,(nm),PTT_LOC) | ^ -
cgibin.c:1039:29: warning: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Wformat-overflow=] 1039 | sprintf(cpuname,"cpu%d",i); | ^~ -
hsccmd.c:2594:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 2594 | chdir(path); | ^~~~~~~~~~~ -
hsccmd.c:2595:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 2595 | getcwd( cwd, sizeof(cwd) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
hsccmd.c:2620:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 2620 | getcwd( cwd, sizeof(cwd) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
hthreads.h:157:37: warning: cast between incompatible function types from 'void (*)()' to 'void * (*)(void *)' [-Wcast-function-type] 157 | ptt_pthread_create(ptid,pat,(THREAD_FUNC*)&(fn),arg,(nm),PTT_LOC) | ^ -
hmacros.h:680:5: warning: ignoring return value of 'setresuid' declared with attribute 'warn_unused_result' [-Wunused-result] 680 | setresuid(sysblk.ruid,sysblk.ruid,sysblk.ruid); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hmacros.h:681:5: warning: ignoring return value of 'setresgid' declared with attribute 'warn_unused_result' [-Wunused-result] 681 | setresgid(sysblk.rgid,sysblk.rgid,sysblk.rgid); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hscutl.c:776:24: warning: comparison is always false due to limited range of data type [-Wtype-limits] 776 | if ((int)b[ix] == EOF) /* Corrected. @PJJ */ | ^~ -
hmacros.h:38:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 38 | #define write_pipe(f,b,n) write(f,b,n) | ^~~~~~~~~~~~ -
hostinfo.c:103:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 103 | if (!f) f = stdout; if (f != stdout) | ^~ -
sllib.c:632:53: warning: 'curtime' may be used uninitialized [-Wmaybe-uninitialized] 632 | strftime( sbuf, sizeof( sbuf ), "%Y%j", localtime( &curtime ) ); | ^~~~~~~~~~~~~~~~~~~~~ -
ckddasd.c:3787:67: warning: '?:' using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] 3785 | if (!(((dev->ckdloper & CKDOPER_CODE) == CKDOPER_WRITE | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3786 | && dev->ckdlcount == | ~~~~~~~~~~~~~~~~~~~~ 3787 | (dev->ckdlaux & CKDLAUX_RDCNTSUF) ? 2 : 1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ -
ckddasd.c:3999:67: warning: '?:' using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] 3997 | if (!(((dev->ckdloper & CKDOPER_CODE) == CKDOPER_WRITE | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3998 | && dev->ckdlcount == | ~~~~~~~~~~~~~~~~~~~~ 3999 | (dev->ckdlaux & CKDLAUX_RDCNTSUF) ? 2 : 1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ -
ckddasd.c:1463:17: warning: this statement may fall through [-Wimplicit-fallthrough=] 1463 | if (dev->devid[6] == 0x01) | ^ -
ckddasd.c:1467:42: warning: this statement may fall through [-Wimplicit-fallthrough=] 1467 | case 0x3340: case 0x3350: shift = 5; | ~~~~~~^~~ -
ckddasd.c:1468:42: warning: this statement may fall through [-Wimplicit-fallthrough=] 1468 | case 0x3375: shift = 6; | ~~~~~~^~~ -
cckddasd.c:5648:18: warning: comparison between pointer and zero character constant [-Wpointer-compare] 5648 | if (p[0] != '\0') | ^~ -
cckdutil.c:769:9: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 769 | ftruncate (fd, off); | ^~~~~~~~~~~~~~~~~~~ -
cckdutil.c:2466:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2466 | write (fd, &cdevhdr, CCKD_DEVHDR_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
cckdutil.c:2705:14: warning: '%s' directive writing up to 4096 bytes into a region of size 4086 [-Wformat-overflow=] 2705 | i += sprintf (msg+i, "%s: ", p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
dasdutil.c:521:36: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 521 | cif = (CIFBLK*) calloc (sizeof(CIFBLK), 1); | ^~~~~~ -
dasdutil.c:755:36: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 755 | cif = (CIFBLK*) calloc (sizeof(CIFBLK), 1); | ^~~~~~ -
shared.c:2467:36: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 2467 | dev->shrd[ix] = calloc (sizeof(SHRD), 1); | ^~~~ -
shared.c:2945:36: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 2945 | s = calloc (sizeof(SHRD_TRACE), n); | ^~~~~~~~~~ -
shared.c:2963:22: warning: comparison between pointer and zero character constant [-Wpointer-compare] 2963 | if (i[0] != '\0') logmsg ("%s",(char *)i); | ^~ -
dasdls.c:172:34: warning: this statement may fall through [-Wimplicit-fallthrough=] 172 | *size += extents_array(&(f3dscb->ds3adext[0]), 9, count, cifx->heads); | ^~ -
dasdls.c:287:72: warning: this statement may fall through [-Wimplicit-fallthrough=] 287 | case RECFM_FORMAT_F: tmpstr = (char*)(tmpstr + 2); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
dasdls.c:352:57: warning: this statement may fall through [-Wimplicit-fallthrough=] 352 | case DS1SCALO_UNITS_BLK: tmpstr = (char*)(tmpstr + 4); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
dasdls.c:353:57: warning: this statement may fall through [-Wimplicit-fallthrough=] 353 | case DS1SCALO_UNITS_TRK: tmpstr = (char*)(tmpstr + 4); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
dasdload.c:2217:18: warning: array subscript ‘struct DATABLK[0]’ is partly outside array bounds of ‘unsigned char[276]’ [-Warray-bounds=] 2217 | blkp->cyl[0] = (cyl >> 8) & 0xFF; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
dasdload.c:2218:18: warning: array subscript ‘struct DATABLK[0]’ is partly outside array bounds of ‘unsigned char[276]’ [-Warray-bounds=] 2218 | blkp->cyl[1] = cyl & 0xFF; | ~~~~~~~~~~~~~^~~~~~~~~~~~ -
dasdload.c:2219:19: warning: array subscript ‘struct DATABLK[0]’ is partly outside array bounds of ‘unsigned char[276]’ [-Warray-bounds=] 2219 | blkp->head[0] = (head >> 8) & 0xFF; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
dasdload.c:2220:19: warning: array subscript ‘struct DATABLK[0]’ is partly outside array bounds of ‘unsigned char[276]’ [-Warray-bounds=] 2220 | blkp->head[1] = head & 0xFF; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
dasdload.c:2221:15: warning: array subscript ‘struct DATABLK[0]’ is partly outside array bounds of ‘unsigned char[276]’ [-Warray-bounds=] 2221 | blkp->rec = rec; | ~~~~~~~~~~^~~~~ -
dasdpdsu.c:60:5: warning: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation] 60 | strncpy (ofname, memname, 8); | ^ -
dasdcopy.c:365:13: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 365 | else | ^~~~ -
hercifc.c:199:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 199 | write( STDERR_FILENO, szMsgBuffer, strlen( szMsgBuffer ) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hercifc.c:233:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 233 | write( STDERR_FILENO, szMsgBuffer, strlen( szMsgBuffer ) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hercifc.c:238:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 238 | write( STDOUT_FILENO, &ctlreq, CTLREQ_SIZE ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:365:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 365 | assign_extop1(opcode, extop, opcode_a5xx, save_a5xx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:370:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 370 | assign_extop1(opcode, extop, opcode_a7xx, save_a7xx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:390:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 390 | assign_extop1(opcode, extop, opcode_c0xx, save_c0xx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:395:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 395 | assign_extop1(opcode, extop, opcode_c2xx, save_c2xx); /*@Z9*/ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:400:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 400 | assign_extop1(opcode, extop, opcode_c4xx, save_c4xx); /*208*/ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:405:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 405 | assign_extop1(opcode, extop, opcode_c6xx, save_c6xx); /*208*/ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:410:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 410 | assign_extop1(opcode, extop, opcode_c8xx, save_c8xx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyninst.c:415:21: warning: 'assign_extop1' accessing 10240 bytes in a region of size 640 [-Wstringop-overflow=] 415 | assign_extop1(opcode, extop, opcode_ccxx, save_ccxx); /*810*/ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dyngui.c:1834:48: warning: '%s' directive output may be truncated writing up to 1280 bytes into a region of size 231 [-Wformat-truncation=] 1834 | "DEV%c=%4.4X %4.4X %-4.4s %c%c%c%c %s" | ^~ -
dyngui.c:1817:50: warning: '%s' directive output may be truncated writing up to 1280 bytes into a region of size 231 [-Wformat-truncation=] 1817 | "DEV%c=0000 SYSG %-4.4s %c%c%c%c %s" | ^~ -
commadpt.c:1250:50: warning: passing argument 3 to 'restrict'-qualified parameter aliases with argument 4 [-Wrestrict] 1250 | rc=select(ca->pipe[1]+1,&rfd,&wfd,&wfd,&tv); | ^~~~ ~~~~ -
hmacros.h:36:33: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | #define create_pipe(f) pipe(f) | ^~~~~~~ -
commadpt.c:1405:19: warning: this statement may fall through [-Wimplicit-fallthrough=] 1405 | if(!writecont && ca->pto!=0) | ^ -
hmacros.h:37:33: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 37 | #define read_pipe(f,b,n) read(f,b,n) | ^~~~~~~~~~~ -
commadpt.c:708:13: warning: ignoring return value of 'strerror_r' declared with attribute 'warn_unused_result' [-Wunused-result] 708 | strerror_r(HSO_errno,wbfr,256); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
commadpt.c:851:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 851 | write(sfd, msgtext, strlen(msgtext)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
commadpt.c:852:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 852 | write(sfd, "\r\n", 2); | ^~~~~~~~~~~~~~~~~~~~~ -
commadpt.c:854:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 854 | write(sfd, telnet_binary, sizeof(telnet_binary)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
comm3705.c:1092:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1092 | write(sfd, msgtext, strlen(msgtext)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
comm3705.c:1093:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1093 | write(sfd, "\r\n", 2); | ^~~~~~~~~~~~~~~~~~~~~ -
ctcadpt.c:1534:9: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 1534 | dup (sockfd[1]); | ^~~~~~~~~~~~~~~ -
ctcadpt.c:1535:9: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 1535 | dup (sockfd[1]); | ^~~~~~~~~~~~~~~ -
ctcadpt.c:1555:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1555 | write(dev->fd, ipaddress, strlen(ipaddress)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ctcadpt.c:1556:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1556 | write(dev->fd, "\n", 1); | ^~~~~~~~~~~~~~~~~~~~~~~ -
ctcadpt.c:1661:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1661 | write(dev->fd, buffer, len); /* should check error conditions? */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
tuntap.c:107:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 107 | write (ifd[1], &ctlreq, CTLREQ_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
tuntap.c:886:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 886 | write( ifc_fd[0], &ctlreq, CTLREQ_SIZE ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ctcadpt.c:2839:54: warning: '%04X' directive output may be truncated writing 4 bytes into a region of size between 1 and 5 [-Wformat-truncation=] 2839 | snprintf( pDEVBLK->filename, 7, "%1d:%04X", | ^~~~ -
tapedev.c:1498:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1498 | if (strchr(dev->filename,' ')) strlcat( devparms, "\"", sizeof(devparms)); | ^~ -
faketape.c:382:5: warning: 'strncpy' output may be truncated copying 4 bytes from a string of length 4 [-Wstringop-truncation] 382 | strncpy( fakehdr.sprvblkl, sblklen, sizeof(fakehdr.sprvblkl) ); | ^ -
faketape.c:384:5: warning: 'strncpy' output may be truncated copying 4 bytes from a string of length 4 [-Wstringop-truncation] 384 | strncpy( fakehdr.scurblkl, sblklen, sizeof(fakehdr.scurblkl) ); | ^ -
faketape.c:386:5: warning: 'strncpy' output may be truncated copying 4 bytes from a string of length 4 [-Wstringop-truncation] 386 | strncpy( fakehdr.sxorblkl, sblklen, sizeof(fakehdr.sxorblkl) ); | ^ -
hettape.c:255:17: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 255 | ftruncate( fileno(dev->hetb->fd),cursize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
omatape.c:246:13: warning: '__strncpy_chk' output may be truncated copying between 0 and 254 bytes from a string of length 4096 [-Wstringop-truncation] 246 | strncpy (tdftab[filecount].filename, dev->filename, pathlen); | ^ -
scsitape.c:1920:32: warning: '%s' directive output may be truncated writing up to 4096 bytes into a region of size between 236 and 240 [-Wformat-truncation=] 1920 | "%u:%4.4X filename=%s (%s), sstat=0x%8.8lX: %s %s" | ^~ -
../dat.h:1243:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 1243 | tl = rte & REGTAB_TL;
-
../dat.h:1296:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 1296 | tl = rte & REGTAB_TL;
-
sha256.c:455:23: warning: argument 1 of type 'u_int8_t[]' {aka 'unsigned char[]'} with mismatched bound [-Warray-parameter=] 455 | SHA256_Final(u_int8_t digest[], SHA256_CTX *context) | ~~~~~~~~~^~~~~~~~ -
sha256.c:792:23: warning: argument 1 of type 'u_int8_t[]' {aka 'unsigned char[]'} with mismatched bound [-Warray-parameter=] 792 | SHA512_Final(u_int8_t digest[], SHA512_CTX *context) | ~~~~~~~~~^~~~~~~~ -
sha256.c:833:23: warning: argument 1 of type 'u_int8_t[]' {aka 'unsigned char[]'} with mismatched bound [-Warray-parameter=] 833 | SHA384_Final(u_int8_t digest[], SHA384_CTX *context) | ~~~~~~~~~^~~~~~~~ -
/usr/include/bits/string_fortified.h:29:10: warning: 'cv' may be used uninitialized [-Wmaybe-uninitialized] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
aes.c:866:64: warning: argument 3 of type 'const u8[16]' {aka 'const unsigned char[16]'} with mismatched bound [-Warray-parameter=] 866 | rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], | ~~~~~~~~~^~~~~~ -
aes.c:867:8: warning: argument 4 of type 'u8[16]' {aka 'unsigned char[16]'} with mismatched bound [-Warray-parameter=] 867 | u8 ct[16]) | ~~~^~~~~~