autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory '.'
badpoll.c: In function ‘main’:
badpoll.c:18:8: warning: array subscript ‘struct pollfd[1]’ is partly outside array bounds of ‘unsigned char[15]’ [-Warray-bounds=]
18 | ufds[1].events = 0;
| ~~~~^~~
badpoll.c:12:26: note: at offset 8 into object of size 15 allocated by ‘malloc’
12 | struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:524,
from /usr/include/assert.h:35,
from badpoll.c:1:
In function ‘poll’,
inlined from ‘main’ at badpoll.c:22:4:
/usr/include/bits/poll2.h:44:10: warning: call to ‘__poll_chk_warn’ declared with attribute warning: poll called with fds buffer too small file nfds entries [-Wattribute-warning]
44 | return __glibc_fortify (poll, __nfds, sizeof (*__fds),
| ^~~~~~~~~~~~~~~
In file included from /usr/include/string.h:548,
from bug401284.c:3:
In function ‘strncat’,
inlined from ‘main’ at bug401284.c:10:5:
/usr/include/bits/string_fortified.h:149:10: warning: ‘__builtin_strncat’ accessing between 1 and 9223372036854775805 bytes at offsets [0, 9223372036854775805] and 0 may overlap 1 byte at offset [0, 9223372036854775807] [-Wrestrict]
149 | return __builtin___strncat_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
clo_redzone.c: In function ‘main’:
clo_redzone.c:17:6: warning: array subscript 197 is outside array bounds of ‘char[128]’ [-Warray-bounds=]
17 | b1[127 + 70] = 'a';
| ~~^~~~~~~~~~
clo_redzone.c:7:15: note: at offset 197 into object of size 128 allocated by ‘malloc’
7 | char *b1 = malloc (128);
| ^~~~~~~~~~~~
In function ‘bad_things_below_sp’,
inlined from ‘child_fn_0’ at descr_belowsp.c:108:4:
descr_belowsp.c:56:47: warning: array subscript -375 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
56 | describe ("1500 bytes below a local var", p-1500);
| ~^~~~~
descr_belowsp.c: In function ‘child_fn_0’:
descr_belowsp.c:54:8: note: at offset -1500 into object ‘i’ of size 4
54 | int i;
| ^
In file included from descr_belowsp.c:17:
descr_belowsp.c:23:46: warning: array subscript 2097151 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
23 | #define VG_ROUNDUP(p, a) VG_ROUNDDN((p)+(a)-1, (a))
| ^
../../include/valgrind.h:434:40: note: in definition of macro ‘VALGRIND_DO_CLIENT_REQUEST_EXPR’
434 | _zzq_args[2] = (unsigned long int)(_zzq_arg2); \
| ^~~~~~~~~
descr_belowsp.c:137:17: note: in expansion of macro ‘VALGRIND_STACK_REGISTER’
137 | stackid = VALGRIND_STACK_REGISTER((void*) 0x0,
| ^~~~~~~~~~~~~~~~~~~~~~~
descr_belowsp.c:23:28: note: in expansion of macro ‘VG_ROUNDDN’
23 | #define VG_ROUNDUP(p, a) VG_ROUNDDN((p)+(a)-1, (a))
| ^~~~~~~~~~
descr_belowsp.c:138:49: note: in expansion of macro ‘VG_ROUNDUP’
138 | (void*) VG_ROUNDUP(&stackid, 2<<20));
| ^~~~~~~~~~
descr_belowsp.c:122:11: note: at offset 8388604 into object ‘stackid’ of size 4
122 | int stackid;
| ^~~~~~~
In function ‘bad_things_below_sp’,
inlined from ‘main’ at descr_belowsp.c:165:4:
descr_belowsp.c:56:47: warning: array subscript -375 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
56 | describe ("1500 bytes below a local var", p-1500);
| ~^~~~~
descr_belowsp.c: In function ‘main’:
descr_belowsp.c:54:8: note: at offset -1500 into object ‘i’ of size 4
54 | int i;
| ^
fwrite.c: In function ‘main’:
fwrite.c:12:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | (void)write(fd, arr, 10);
| ^~~~~~~~~~~~~~~~~~
manuel2.c: In function ‘main’:
manuel2.c:8:13: warning: ‘*m’ is used uninitialized [-Wuninitialized]
8 | int *x = m[0] + &y; // we know m[0] will be zero
| ~^~~
memalign_args.c: In function ‘main’:
memalign_args.c:23:10: warning: ignoring return value of ‘posix_memalign’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
23 | (void)posix_memalign((void **)&mem,align,size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
memalign_args.c:24:4: warning: ‘mem’ may be used uninitialized [-Wmaybe-uninitialized]
24 | free(mem);
| ^~~~~~~~~
memalign_args.c:13:10: note: ‘mem’ was declared here
13 | char *mem;
| ^~~
overlap.c: In function ‘main’:
overlap.c:44:4: warning: ‘__builtin_strncpy’ output may be truncated copying 20 bytes from a string of length 99 [-Wstringop-truncation]
44 | strncpy(x+20, x, 20); // ok
| ^
In file included from /usr/include/string.h:548,
from overlap.c:1:
In function ‘strncpy’,
inlined from ‘main’ at overlap.c:45:4:
/usr/include/bits/string_fortified.h:100:10: warning: ‘__builtin_strncpy’ accessing 21 bytes at offsets 20 and 0 may overlap 1 byte at offset 20 [-Wrestrict]
100 | return __builtin___strncpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘main’ at overlap.c:47:4:
/usr/include/bits/string_fortified.h:100:10: warning: ‘__builtin_strncpy’ accessing 21 bytes at offsets 0 and 20 overlaps 1 byte at offset 20 [-Wrestrict]
100 | return __builtin___strncpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
overlap.c: In function ‘main’:
overlap.c:74:4: warning: ‘__builtin_strncpy’ output may be truncated copying 25 bytes from a string of length 26 [-Wstringop-truncation]
74 | strncpy(b, a, 25);
| ^
overlap.c:78:4: warning: ‘__builtin_strncpy’ output may be truncated copying 26 bytes from a string of length 26 [-Wstringop-truncation]
78 | strncpy(b, a, 26);
| ^
overlap.c:97:4: warning: ‘__builtin___strncat_chk’ output may be truncated copying 25 bytes from a string of length 26 [-Wstringop-truncation]
97 | strncat(b, a, 25);
| ^
overlap.c:101:4: warning: ‘__builtin___strncat_chk’ output may be truncated copying 26 bytes from a string of length 26 [-Wstringop-truncation]
101 | strncat(b, a, 26);
| ^
In function ‘strncat’,
inlined from ‘main’ at overlap.c:112:7:
/usr/include/bits/string_fortified.h:149:10: warning: ‘__builtin___strncat_chk’ forming offset [27, 40] is out of the bounds [0, 27] of object ‘a’ with type ‘char[27]’ [-Warray-bounds=]
149 | return __builtin___strncat_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
overlap.c: In function ‘main’:
overlap.c:24:9: note: ‘a’ declared here
24 | char a[] = "abcdefghijklmnopqrstuvwxyz";
| ^
In function ‘strncat’,
inlined from ‘main’ at overlap.c:113:4:
/usr/include/bits/string_fortified.h:149:10: warning: ‘__builtin___strncat_chk’ accessing 1 byte at offsets 0 and 20 overlaps 1 byte at offset 20 [-Wrestrict]
149 | return __builtin___strncat_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘memcpy’,
inlined from ‘main’ at overlap.c:40:4:
/usr/include/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ accessing 21 bytes at offsets 20 and 0 overlaps 1 byte at offset 20 [-Wrestrict]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘memcpy’,
inlined from ‘main’ at overlap.c:42:4:
/usr/include/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ accessing 21 bytes at offsets 0 and 20 overlaps 1 byte at offset 20 [-Wrestrict]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
partial_load.c: In function ‘main’:
partial_load.c:16:7: warning: array subscript ‘long int[0]’ is partly outside array bounds of ‘unsigned char[7]’ [-Warray-bounds=]
16 | w = *(long*)p;
| ^~~~~~~~~
partial_load.c:14:7: note: object of size 7 allocated by ‘calloc’
14 | p = calloc( sizeof(long)-1, 1 );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
partial_load.c:23:8: warning: array subscript ‘long int[0]’ is partly outside array bounds of ‘unsigned char[8]’ [-Warray-bounds=]
23 | w += *(long*)p;
| ^~~~~~~~~
partial_load.c:20:7: note: at offset 1 into object of size 8 allocated by ‘calloc’
20 | p = calloc( sizeof(long), 1 );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
partial_load.c:30:16: warning: array subscript ‘short int[0]’ is partly outside array bounds of ‘unsigned char[1]’ [-Warray-bounds=]
30 | w += (long)( *(short*)p );
| ~~^~~~~~~~~~~~
partial_load.c:28:7: note: object of size 1 allocated by ‘calloc’
28 | p = calloc( sizeof(short)-1, 1 );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pipe.c: In function ‘main’:
pipe.c:13:4: warning: ignoring return value of ‘pipe’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | pipe(filedes);
| ^~~~~~~~~~~~~
realloc3.c: In function ‘main’:
realloc3.c:23:10: warning: array subscript 5 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
23 | a = (x[5] == 0xdeadbeef ? 1 : 0);
| ~^~~
realloc3.c:19:8: note: at offset 20 into object of size 5 allocated by ‘realloc’
19 | x = realloc(x, 5); // same size
| ^~~~~~~~~~~~~
realloc3.c:24:10: warning: array subscript 5 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
24 | b = (y[5] == 0xdeadbeef ? 1 : 0);
| ~^~~
realloc3.c:20:8: note: at offset 20 into object of size 5 allocated by ‘realloc’
20 | y = realloc(y, 5); // make smaller
| ^~~~~~~~~~~~~
realloc3.c:25:10: warning: array subscript 5 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
25 | c = (z[5] == 0xdeadbeef ? 1 : 0);
| ~^~~
realloc3.c:21:8: note: at offset 20 into object of size 5 allocated by ‘realloc’
21 | z = realloc(z, 5); // make bigger
| ^~~~~~~~~~~~~
In file included from /usr/include/string.h:548,
from str_tester.c:33:
In function ‘strncat’,
inlined from ‘test_strncat’ at str_tester.c:332:10,
inlined from ‘main’ at str_tester.c:1432:3:
/usr/include/bits/string_fortified.h:149:10: warning: ‘__builtin___strncat_chk’ forming offset [50, 98] is out of the bounds [0, 50] of object ‘one’ with type ‘char[50]’ [-Warray-bounds=]
149 | return __builtin___strncat_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
str_tester.c: In function ‘main’:
str_tester.c:66:6: note: ‘one’ declared here
66 | char one[50];
| ^~~
xml1.c: In function ‘frame3’:
xml1.c:28:3: warning: ‘free’ called on unallocated object ‘n’ [-Wfree-nonheap-object]
28 | free(return_arg(&n));
| ^~~~~~~~~~~~~~~~~~~~
xml1.c:11:7: note: declared here
11 | int n = a[10];
| ^
wrap8.c: In function ‘send’:
wrap8.c:107:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
107 | write(1, s, 1);
| ^~~~~~~~~~~~~~
stpncpy.c: In function ‘main’:
stpncpy.c:20:7: warning: ‘__builtin_stpncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation]
20 | c = stpncpy (b, a, l + 3);
| ^
stpncpy.c:13:14: note: length computed here
13 | size_t l = strlen (a);
| ^~~~~~~~~~
In file included from /usr/include/features.h:524,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/wchar.h:27,
from wcpncpy.c:1:
In function ‘wcpncpy’,
inlined from ‘main’ at wcpncpy.c:14:4:
/usr/include/bits/wchar2.h:112:10: warning: ‘dest2’ may be used uninitialized [-Wmaybe-uninitialized]
112 | return __glibc_fortify_n (wcpncpy, __n, sizeof (wchar_t),
| ^~~~~~~~~~~~~~~~~
/usr/include/bits/wchar2-decl.h: In function ‘main’:
/usr/include/bits/wchar2-decl.h:114:17: note: by argument 2 of type ‘const wchar_t * restrict’ {aka ‘const int * restrict’} to ‘__wcpncpy_alias’ declared here
114 | extern wchar_t *__REDIRECT_NTH (__wcpncpy_alias,
| ^~~~~~~~~~~~~~
In function ‘wcpncpy’,
inlined from ‘main’ at wcpncpy.c:27:10:
/usr/include/bits/wchar2.h:112:10: warning: call to ‘__wcpncpy_chk_warn’ declared with attribute warning: wcpncpy called with length bigger than size of destination buffer [-Wattribute-warning]
112 | return __glibc_fortify_n (wcpncpy, __n, sizeof (wchar_t),
| ^~~~~~~~~~~~~~~~~
more_x86_fp.c: In function ‘test_fcvt’:
more_x86_fp.c:98:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
98 | printf("a=%016llx\n", *(long long *)&a);
| ^~~~~~~~~~~~~~~
more_x86_fp.c:99:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
99 | printf("la=%016llx %04x\n", *(long long *)&la,
| ^~~~~~~~~~~~~~~~
more_x86_fp.c:100:12: warning: ‘la’ is used uninitialized [-Wuninitialized]
100 | *(unsigned short *)((char *)(&la) + 8));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
more_x86_fp.c:86:17: note: ‘la’ declared here
86 | long double la;
| ^~
/usr/bin/ld: warning: pushfpopf_s.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
/usr/bin/ld: warning: tronical.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
insn-pcmpistri.c: In function ‘test_strlen’:
insn-pcmpistri.c:44:4: warning: ignoring return value of ‘posix_memalign’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
44 | posix_memalign(&space, 16, roundup);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:548,
from insn-pcmpistri.c:9:
In function ‘memcpy’,
inlined from ‘test_strlen’ at insn-pcmpistri.c:46:4:
/usr/include/bits/string_fortified.h:29:10: warning: ‘space’ may be used uninitialized [-Wmaybe-uninitialized]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
insn-pcmpistri.c: In function ‘test_strlen’:
insn-pcmpistri.c:43:10: note: ‘space’ was declared here
43 | void *space;
| ^~~~~
more_x87_fp.c: In function ‘test_fcvt’:
more_x87_fp.c:108:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
108 | printf("a=%016llx\n", *(long long *)&a);
| ^~~~~~~~~~~~~~~
more_x87_fp.c:109:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
109 | printf("la=%016llx %04x\n", *(long long *)&la,
| ^~~~~~~~~~~~~~~~
more_x87_fp.c:110:12: warning: ‘la’ is used uninitialized [-Wuninitialized]
110 | *(unsigned short *)((char *)(&la) + 8));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
more_x87_fp.c:96:17: note: ‘la’ declared here
96 | long double la;
| ^~
sys-preadv2_pwritev2.c: In function ‘main’:
sys-preadv2_pwritev2.c:53:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
53 | pwritev2(fd, NULL, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:54:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
54 | pwritev2(fd, z, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:55:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
55 | pwritev2(fd, t, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:56:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
56 | pwritev2(fd, iov, -1, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:57:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
57 | pwritev2(fd, iov, c, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:58:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
58 | pwritev2(fd, iov, 2, -5, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:59:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
59 | pwritev2(-1, iov, 2, -5, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:60:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
60 | pwritev2(fd, iov, 2, -5, flag);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:62:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
62 | preadv2(fd, NULL, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:63:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
63 | preadv2(fd, z, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:64:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
64 | preadv2(fd, t, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:65:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
65 | preadv2(fd, iov, -1, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:66:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
66 | preadv2(fd, iov, c, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:67:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
67 | preadv2(fd, iov, 2, -5, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:68:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
68 | preadv2(-1, iov, 2, -5, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:71:9: warning: ignoring return value of ‘pwritev2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
71 | pwritev2(fd, iov, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv2_pwritev2.c:72:9: warning: ignoring return value of ‘preadv2’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
72 | preadv2(fd, iov, 2, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c: In function ‘main’:
sys-preadv_pwritev.c:52:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
52 | pwritev(fd, NULL, 2, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:53:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
53 | pwritev(fd, z, 2, 0);
| ^~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:54:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
54 | pwritev(fd, t, 2, 0);
| ^~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:55:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
55 | pwritev(fd, iov, -1, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:56:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
56 | pwritev(fd, iov, c, 0);
| ^~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:57:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
57 | pwritev(fd, iov, 2, -5);
| ^~~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:58:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
58 | pwritev(-1, iov, 2, -5);
| ^~~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:60:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
60 | preadv(fd, NULL, 2, 0);
| ^~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:61:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
61 | preadv(fd, z, 2, 0);
| ^~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:62:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
62 | preadv(fd, t, 2, 0);
| ^~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:63:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
63 | preadv(fd, iov, -1, 0);
| ^~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:64:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
64 | preadv(fd, iov, c, 0);
| ^~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:65:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
65 | preadv(fd, iov, 2, -5);
| ^~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:66:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
66 | preadv(-1, iov, 2, -5);
| ^~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:69:9: warning: ignoring return value of ‘pwritev’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
69 | pwritev(fd, iov, 2, 0);
| ^~~~~~~~~~~~~~~~~~~~~~
sys-preadv_pwritev.c:70:9: warning: ignoring return value of ‘preadv’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
70 | preadv(fd, iov, 2, 0);
| ^~~~~~~~~~~~~~~~~~~~~
chdir.c: In function ‘main’:
chdir.c:7:4: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | chdir("..");
| ^~~~~~~~~~~
/usr/bin/ld: warning: fpu-28-108.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
linuxthreads_det.c: In function ‘thread_func’:
linuxthreads_det.c:18:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
18 | write(STDOUT_FILENO, "NPTL or non-Linux POSIX threads implementation detected.\n", 57);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linuxthreads_det.c:22:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
22 | write(STDOUT_FILENO, "Detected LinuxThreads as POSIX threads implementation.\n", 55);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_detached.c: In function ‘main’:
pth_detached.c:82:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
82 | write(STDOUT_FILENO, "\n", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_detached.c: In function ‘thread_func2’:
pth_detached.c:32:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
32 | write(STDOUT_FILENO, ".", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_detached.c: In function ‘thread_func1’:
pth_detached.c:24:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
24 | write(STDOUT_FILENO, ".", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_detached_sem.c: In function ‘main’:
pth_detached_sem.c:84:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
84 | write(STDOUT_FILENO, "\n", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_detached_sem.c: In function ‘thread_func2’:
pth_detached_sem.c:36:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
36 | write(STDOUT_FILENO, ".", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_detached_sem.c: In function ‘thread_func1’:
pth_detached_sem.c:28:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
28 | write(STDOUT_FILENO, ".", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_mutex_signal.c: In function ‘nullHandler’:
pth_mutex_signal.c:44:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
44 | write(STDERR_FILENO, msg, strlen(msg));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sigalrm.c: In function ‘print_thread_id’:
sigalrm.c:37:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
37 | write(STDOUT_FILENO, msg, strlen(msg));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_barrier_thr_cr.c: In function ‘main’:
pth_barrier_thr_cr.c:54:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
54 | write(STDOUT_FILENO, "\n", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pth_barrier_thr_cr.c: In function ‘thread’:
pth_barrier_thr_cr.c:20:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
20 | write(STDOUT_FILENO, ".", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
bug234814.c: In function ‘mysigbus’:
bug234814.c:13:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | write(1, kSigbus, sizeof(kSigbus)-1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
faultstatus.c: In function ‘main’:
faultstatus.c:164:9: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
164 | ftruncate(fd, FILESIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~
fdleak_cmsg.c: In function ‘client’:
fdleak_cmsg.c:153:19: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
153 | if (fd1 != -1) write(fd1, "Yeah 1\n", 8);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
fdleak_cmsg.c:154:19: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
154 | if (fd2 != -1) write(fd2, "Yeah 2\n", 8);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
nocwd.c: In function ‘main’:
nocwd.c:32:7: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
32 | chdir ("subdir");
| ^~~~~~~~~~~~~~~~
map_unmap.c: In function ‘prmaps’:
map_unmap.c:81:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
81 | system(buf);
| ^~~~~~~~~~~
sigstackgrowth.c: In function ‘main’:
sigstackgrowth.c:48:22: warning: array subscript -4194304 is outside array bounds of ‘char[1]’ [-Warray-bounds=]
48 | deep = &here - SIZE;
| ^
sigstackgrowth.c:47:14: note: at offset -4194304 into object ‘here’ of size 1
47 | char here;
| ^~~~
syscall-restart2.c: In function ‘main’:
syscall-restart2.c:56:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
56 | write(fds[1], "x", 1);
| ^~~~~~~~~~~~~~~~~~~~~
system.c: In function ‘main’:
system.c:8:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | system("../../tests/true");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
track_new.c: In function ‘main’:
track_new.c:15:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
15 | write(oldfd, "some new text\n", 14);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
use_after_close.c: In function ‘main’:
use_after_close.c:12:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | write(fd, string, 4);
| ^~~~~~~~~~~~~~~~~~~~
use_after_close.c:16:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
16 | write(fd, string, 4);
| ^~~~~~~~~~~~~~~~~~~~
use_after_close.c:19:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
19 | write(7, string, 4);
| ^~~~~~~~~~~~~~~~~~~
use_after_close.c:22:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
22 | write(-7, string, 4);
| ^~~~~~~~~~~~~~~~~~~~
track_std.c: In function ‘main’:
track_std.c:27:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
27 | write (1, buf, nbytes);
| ^~~~~~~~~~~~~~~~~~~~~~
track_bad.c: In function ‘main’:
track_bad.c:13:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | write(fd, string, 4);
| ^~~~~~~~~~~~~~~~~~~~
track_bad.c:17:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
17 | write(fd, string, 4);
| ^~~~~~~~~~~~~~~~~~~~
track_bad.c:20:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
20 | write(7, string, 4);
| ^~~~~~~~~~~~~~~~~~~
track_bad.c:23:4: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
23 | write(-7, string, 4);
| ^~~~~~~~~~~~~~~~~~~~
faultstatus.c: In function ‘main’:
faultstatus.c:127:9: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
127 | ftruncate(fd, FILESIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: warning: cpuid_s.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
faultstatus.c: In function ‘main’:
faultstatus.c:109:9: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
109 | ftruncate(fd, FILESIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~
clonev.c: In function ‘fork_routine’:
clonev.c:13:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | write(1, "fork_routine\n", 13);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clonev.c: In function ‘main’:
clonev.c:51:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
51 | write(1, "parent before clone\n", 20);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clonev.c:55:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
55 | write(1, "parent after clone\n", 19);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mremap2.c: In function ‘main’:
mremap2.c:139:15: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
139 | if (0) system(buf);
| ^~~~~~~~~~~
mremap2.c:116:37: warning: array subscript 125000000 is outside array bounds of ‘int[1]’ [-Warray-bounds=]
116 | dst_impossible = (char*)(&alocal) + 500 * 1000 * 1000;
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
mremap2.c:108:7: note: at offset 500000000 into object ‘alocal’ of size 4
108 | int alocal, maymove, fixed, nsi, dstpossible;
| ^~~~~~
open_client.cpp: In function ‘int main(int, char**)’:
open_client.cpp:140:10: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
140 | chdir("..");
| ~~~~~^~~~~~
In function ‘load’,
inlined from ‘load’ at tinycc.c:5750:13:
tinycc.c:5773:28: warning: ‘v1.sym’ may be used uninitialized [-Wmaybe-uninitialized]
5773 | gen_modrm(r, fr, sv->sym, fc);
| ~~^~~~~
tinycc.c: In function ‘load’:
tinycc.c:5738:12: note: ‘v1’ declared here
5738 | SValue v1;
| ^~
In function ‘external_global_sym’,
inlined from ‘external_global_sym’ at tinycc.c:10158:13,
inlined from ‘gen_cvt_ftoi’ at tinycc.c:6447:11:
tinycc.c:10166:21: warning: ‘ushort_type.ref’ may be used uninitialized [-Wmaybe-uninitialized]
10166 | s->type.ref = type->ref;
| ~~~~~~~~~~~~^~~~~~~~~~~
tinycc.c: In function ‘gen_cvt_ftoi’:
tinycc.c:6436:11: note: ‘ushort_type.ref’ was declared here
6436 | CType ushort_type;
| ^~~~~~~~~~~
In function ‘preprocess_init’,
inlined from ‘tcc_assemble.isra’ at tinycc.c:17768:5:
tinycc.c:14822:19: warning: array subscript -1 is outside array bounds of ‘SValue[256]’ [-Warray-bounds=]
14822 | vtop = vstack - 1;
| ~~~~~~~^~~
tinycc.c: In function ‘tcc_assemble.isra’:
tinycc.c:2372:15: note: at offset -64 into object ‘vstack’ of size 16384
2372 | static SValue vstack[VSTACK_SIZE], *vtop;
| ^~~~~~
In function ‘preprocess_init’,
inlined from ‘tcc_compile’ at tinycc.c:14837:5:
tinycc.c:14822:19: warning: array subscript -1 is outside array bounds of ‘SValue[256]’ [-Warray-bounds=]
14822 | vtop = vstack - 1;
| ~~~~~~~^~~
tinycc.c: In function ‘tcc_compile’:
tinycc.c:2372:15: note: at offset -64 into object ‘vstack’ of size 16384
2372 | static SValue vstack[VSTACK_SIZE], *vtop;
| ^~~~~~
passsigalrm.c: In function ‘main’:
passsigalrm.c:52:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
52 | system("../tests/true");
| ^~~~~~~~~~~~~~~~~~~~~~~