agrep-3.41.5-unstable-2022-03-23
451 | fill_buf(fd, buf, record_size)
| ^
bitap.c:74:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
74 | int fill_buf(); /* bitap.c */
| ^
bitap.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
486 | alloc_buf(fd, buf, size)
| ^
bitap.c:494:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
494 | *buf = (char *)malloc(size);
| ^ ~~~~~~~~~~~~~~~~~~~~
bitap.c:498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
498 | free_buf(fd, buf)
| ^
36 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o checkfil.o checkfil.c
checkfil.c:47:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
47 | int check_file(fname)
| ^
1 warning generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o compat.o compat.c
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o dummyfil.o dummyfil.c
dummyfil.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
53 | forward_tcompressed_word(begin, end, delim, len, outtail, flags)
| ^
dummyfil.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
61 | backward_tcompressed_word(end, begin, delim, len, outtail, flags)
| ^
2 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o main.o main.c
main.c:77:17: warning: passing arguments to 'fileagrep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
77 | ret = fileagrep(argc, argv, 0, stdout);
| ^
main.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
30 | main(argc, argv)
| ^
2 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o maskgen.o maskgen.c
maskgen.c:48:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
48 | if ((M = strlen(Pattern)) <= 0) return 0;
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
maskgen.c:27:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
27 | maskgen(Pattern, D)
| ^
2 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o parse.o parse.c
parse.c:65:29: warning: passing arguments to 'create_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
65 | Firstpos(node) = create_pos(lit_pos(l));
| ^
parse.c:43:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
43 | Re_node mk_leaf(opval, type, ch, cset)
| ^
parse.c:74:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
74 | Re_node parse_cset(s)
| ^
parse.c:147:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
147 | Re_node parse_chlit(ch)
| ^
parse.c:161:10: warning: passing arguments to 'free_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
161 | free_re(tok_val(next_token));
| ^
parse.c:155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
155 | void free_tok(next_token)
| ^
parse.c:181:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
181 | Tok_node get_token(s)
| ^
parse.c:257:10: warning: passing arguments to 'free_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
257 | free_re(Rchild(r));
| ^
parse.c:258:10: warning: passing arguments to 'free_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
258 | free_re(Lchild(r));
| ^
parse.c:244:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
244 | Stack cat2(stk)
| ^
parse.c:288:10: warning: passing arguments to 'free_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
288 | free_re(Child(r));
| ^
parse.c:276:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
276 | Stack wrap(s, opv)
| ^
parse.c:302:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
302 | Stack mk_alt(s, r)
| ^
parse.c:325:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
325 | Re_node parse_re(s, end)
| ^
parse.c:434:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
434 | Re_node parse(s)
| ^
15 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o checksg.o checksg.c
checksg.c:30:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
30 | m = strlen(Pattern);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
checksg.c:19:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
19 | checksg(Pattern, D, set)
| ^
2 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o preproce.o preproce.c
preproce.c:66:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
66 | if ((m = strlen(Pattern)) <= 0) return 0;
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:84:29: warning: passing arguments to 'asplit_pattern' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
84 | if (((ret1 = asplit_pattern(Pattern, m, aterminals, &anum_terminals, &AParse)) <= 0) || /* can change the pattern if simple boolean with {} */| ^
preproce.c:85:30: warning: passing arguments to 'asplit_terminal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
85 | ((ret2 = asplit_terminal(0, anum_terminals, multibuf, &multilen)) <= 0) ||
| ^
preproce.c:87:56: warning: passing arguments to 'destroy_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
87 | if (AComplexBoolean && (AParse != NULL)) destroy_tree(AParse); /* so that direct exec invocations don't use AParse by mistake! */
| ^
preproce.c:99:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
99 | m = strlen(Pattern);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:123:38: warning: passing arguments to 'quick_tcompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
123 | if ((tc_D_length = quick_tcompress(FREQ_FILE, HASH_FILE, D_pattern, D_length, tc_D_pattern, MaxDelimit*2, TC_EASYSEARCH)) <= 0) {| ^
preproce.c:124:12: warning: passing 'unsigned char[32]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
124 | strcpy(tc_D_pattern, D_pattern);
| ^~~~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:39: note: passing argument to parameter '__dest' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:124:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
124 | strcpy(tc_D_pattern, D_pattern);
| ^~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:142:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
142 | r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern) + 8); /* bug-report, From: Chris Dalton <crd@hplb.hpl.hp.com> */
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:142:51: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
142 | r_pat = (CHAR *) malloc(strlen(Pattern)+2*strlen(D_pattern) + 8); /* bug-report, From: Chris Dalton <crd@hplb.hpl.hp.com> */
| ^~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:143:9: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
143 | strcpy(temp, D_pattern);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:39: note: passing argument to parameter '__dest' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:143:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
143 | strcpy(temp, D_pattern);
| ^~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:144:21: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
144 | d_end = t = strlen(temp); /* size of D_pattern, including '; ' */
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:151:10: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
151 | strcat(temp, Pattern);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:149:39: note: passing argument to parameter '__dest' here
149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:151:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
151 | strcat(temp, Pattern);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:149:70: note: passing argument to parameter '__src' here
149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:152:14: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
152 | m = strlen(temp);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:165:10: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
165 | strcat(temp, Pattern);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:149:39: note: passing argument to parameter '__dest' here
149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:165:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
165 | strcat(temp, Pattern);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:149:70: note: passing argument to parameter '__src' here
149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:166:14: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
166 | m = strlen(temp);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
preproce.c:221:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
221 | strcpy(D_pattern, old_D_pat);
| ^~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:39: note: passing argument to parameter '__dest' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:221:20: warning: passing 'unsigned char[32]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
221 | strcpy(D_pattern, old_D_pat);
| ^~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:366:17: warning: passing arguments to 'init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
366 | num_pos = init(r_pat, table);
| ^
preproce.c:386:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
386 | strcpy(old_pat, Pattern); /* do real change to the Pattern to be returned */
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:39: note: passing argument to parameter '__dest' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:386:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
386 | strcpy(old_pat, Pattern); /* do real change to the Pattern to be returned */
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
preproce.c:52:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
52 | preprocess(D_pattern, Pattern) /* need two parameters */
| ^
25 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o delim.o delim.c
delim.c:8:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
8 | preprocess_delimiter(src, srclen, dest, pdestlen)
| ^
delim.c:15:9: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
15 | strcpy(temp, src);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:39: note: passing argument to parameter '__dest' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
delim.c:15:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
15 | strcpy(temp, src);
| ^~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
delim.c:27:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
27 | *pdestlen = strlen(dest);
| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
delim.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
32 | exists_delimiter(begin, end, delim, len)
| ^
delim.c:39:56: warning: passing arguments to 'exists_tcompressed_word' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
39 | if (TCOMPRESSED == ON) return (exists_tcompressed_word(delim, len, begin, end - begin, EASYSEARCH));
| ^
delim.c:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
50 | forward_delimiter(begin, end, delim, len, outtail)
| ^
delim.c:63:56: warning: passing arguments to 'forward_tcompressed_word' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
63 | if (TCOMPRESSED == ON) return forward_tcompressed_word(begin, end, delim, len, outtail, EASYSEARCH);
| ^
delim.c:75:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
75 | backward_delimiter(end, begin, delim, len, outtail)
| ^
delim.c:88:57: warning: passing arguments to 'backward_tcompressed_word' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
88 | if (TCOMPRESSED == ON) return backward_tcompressed_word(end, begin, delim, len, outtail, EASYSEARCH);
| ^
10 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o asplit.o asplit.c
In file included from asplit.c:4:
./putils.c:6:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
6 | is_complex_boolean(buffer, len)
| ^
./putils.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
37 | get_token_bool(buffer, len, ptr, tokenbuf, tokenlen)
| ^
./putils.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
69 | print_tree(t, level)
| ^
./putils.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
89 | destroy_tree(t)
| ^
asplit.c:20:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
20 | aparse_flat(begin, end, prev, next)
| ^
asplit.c:86:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
86 | while (buffer_pat = (aparse_flat(buffer, buffer_end, *pAParse, pAParse)) ) {| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asplit.c:86:21: note: place parentheses around the assignment to silence this warning
86 | while (buffer_pat = (aparse_flat(buffer, buffer_end, *pAParse, pAParse)) ) {| ^
| ( )
asplit.c:86:21: note: use '==' to turn this assignment into an equality comparison
86 | while (buffer_pat = (aparse_flat(buffer, buffer_end, *pAParse, pAParse)) ) {| ^
| ==
asplit.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
66 | asplit_pattern_flat(APattern, AM, terminals, pnum_terminals, pAParse)
| ^
asplit.c:260:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
260 | strcpy(n->data.leaf.value, oldtokenbuf);
| ^~~~~~~~~~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:39: note: passing argument to parameter '__dest' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
asplit.c:260:31: warning: passing 'unsigned char[256]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
260 | strcpy(n->data.leaf.value, oldtokenbuf);
| ^~~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
asplit.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
123 | aparse_tree(buffer, len, bufptr, terminals, pnum_terminals)
| ^
asplit.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
286 | asplit_pattern(APattern, AM, terminals, pnum_terminals, pAParse)
| ^
asplit.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
341 | eval_tree(tree, matched_terminals)
| ^
asplit.c:382:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
382 | word_length = strlen(aterminals[first].data.leaf.value);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
asplit.c:384:22: warning: passing arguments to 'checksg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
384 | if ((type = checksg(aterminals[first].data.leaf.value, D, 0)) == -1) return -1;
| ^
asplit.c:386:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
386 | strcpy(&pat_buf[*pat_ptr], aterminals[first].data.leaf.value);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:141:70: note: passing argument to parameter '__src' here
141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ^
asplit.c:369:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
369 | asplit_terminal(first, last, pat_buf, pat_ptr)
| ^
16 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o recursiv.o recursiv.c
recursiv.c:117:11: warning: passing arguments to 'treewalk' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
117 | treewalk(name_buf);
| ^
recursiv.c:121:19: warning: passing arguments to 'exec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
121 | if ((ret = exec(3, file_list)) == -1) return -1;
| ^
recursiv.c:104:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
104 | recursive(argc, argv)
| ^
recursiv.c:162:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype]
162 | extern void *malloc();
| ^
recursiv.c:192:17: warning: passing arguments to 'directory' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
192 | directory(name);
| ^
recursiv.c:203:8: warning: passing arguments to 'exec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
203 | exec(3, file_list);
| ^
recursiv.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
156 | treewalk(name)
| ^
recursiv.c:99:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
99 | static void treewalk();
| ^
recursiv.c:212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
212 | directory(name)
| ^
recursiv.c:98:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
98 | void directory();
| ^
10 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o sgrep.o sgrep.c
sgrep.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
198 | mystrchr(s, c)
| ^
sgrep.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
214 | char_tr(pat, m)
| ^
sgrep.c:284:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
284 | strncpy(pat, in_pat, MAXLINE);
| ^~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:144:40: note: passing argument to parameter '__dest' here
144 | extern char *strncpy (char *__restrict __dest,
| ^
sgrep.c:284:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
284 | strncpy(pat, in_pat, MAXLINE);
| ^~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:145:32: note: passing argument to parameter '__src' here
145 | const char *__restrict __src, size_t __n)
| ^
sgrep.c:332:30: warning: passing arguments to 'fill_buf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
332 | while( (num_read = fill_buf(fd, text+offset, 2*BLOCKSIZE)) > 0)
| ^
sgrep.c:339:47: warning: passing arguments to 'tuncompressible' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
339 | if ((TCOMPRESSED == ON) && tuncompressible(text+offset, num_read)) {| ^
sgrep.c:349:49: warning: passing arguments to 'quick_tcompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
349 | if (samepattern || ((newm = quick_tcompress(FREQ_FILE, HASH_FILE, pat, m, newpat, MAXLINE-8, EASYSEARCH)) > 0)) {| ^
sgrep.c:362:5: warning: passing arguments to 'm_preprocess' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
362 | PROCESS_PATTERN /* must be AFTER we know that it is a compressed pattern... */
| ^
sgrep.c:310:33: note: expanded from macro 'PROCESS_PATTERN'
310 | if(m > LONG_EXAC) m_preprocess(pat);\
| ^
sgrep.c:362:5: warning: passing arguments to 'prep_bm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:311:15: note: expanded from macro 'PROCESS_PATTERN'
311 | else prep_bm(pat, m);\
| ^
sgrep.c:362:5: warning: passing arguments to 'prep4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:313:21: note: expanded from macro 'PROCESS_PATTERN'
313 | else if (DNA) prep4(pat, m);\
| ^
sgrep.c:362:5: warning: passing arguments to 'am_preprocess' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:314:40: note: expanded from macro 'PROCESS_PATTERN'
314 | else if(m >= LONG_APPX) am_preprocess(pat);\
| ^
sgrep.c:362:5: warning: passing arguments to 'prep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:316:7: note: expanded from macro 'PROCESS_PATTERN'
316 | prep(pat, m, D);\
| ^
sgrep.c:362:5: warning: passing arguments to 'initmask' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:317:11: note: expanded from macro 'PROCESS_PATTERN'
317 | initmask(pat, Mask, m, 0, &endposition);\
| ^
sgrep.c:407:22: warning: passing arguments to 'monkey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
407 | if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) {| ^
sgrep.c:408:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
408 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:413:18: warning: passing arguments to 'bm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
413 | if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) {| ^
sgrep.c:414:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
414 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:421:23: warning: passing arguments to 'monkey4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
421 | if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) {| ^
sgrep.c:422:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
422 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:428:25: warning: passing arguments to 'a_monkey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
428 | if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) {| ^
sgrep.c:429:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
429 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:434:22: warning: passing arguments to 'agrep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
434 | if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) {| ^
sgrep.c:435:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
435 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:452:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
452 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:458:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
458 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:468:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
468 | strncpy(text+start, text+end, residue);
| ^~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:144:40: note: passing argument to parameter '__dest' here
144 | extern char *strncpy (char *__restrict __dest,
| ^
sgrep.c:468:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
468 | strncpy(text+start, text+end, residue);
| ^~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:145:32: note: passing argument to parameter '__src' here
145 | const char *__restrict __src, size_t __n)
| ^
sgrep.c:472:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
472 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:490:22: warning: passing arguments to 'monkey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
490 | if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) {| ^
sgrep.c:491:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
491 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:496:18: warning: passing arguments to 'bm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
496 | if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) {| ^
sgrep.c:497:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
497 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:504:23: warning: passing arguments to 'monkey4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
504 | if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) {| ^
sgrep.c:505:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
505 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:511:25: warning: passing arguments to 'a_monkey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
511 | if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) {| ^
sgrep.c:512:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
512 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:517:22: warning: passing arguments to 'agrep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
517 | if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) {| ^
sgrep.c:518:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
518 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:535:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
535 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:541:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
541 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:546:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
546 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:562:45: warning: passing arguments to 'tuncompressible' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
562 | if ((TCOMPRESSED == ON) && tuncompressible(text+1, num_read)) {| ^
sgrep.c:572:47: warning: passing arguments to 'quick_tcompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
572 | if (samepattern || ((newm = quick_tcompress(FREQ_FILE, HASH_FILE, pat, m, newpat, MAXLINE-8, EASYSEARCH)) > 0)) {| ^
sgrep.c:585:3: warning: passing arguments to 'm_preprocess' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
585 | PROCESS_PATTERN /* must be after we know whether it is compressed or not */
| ^
sgrep.c:310:33: note: expanded from macro 'PROCESS_PATTERN'
310 | if(m > LONG_EXAC) m_preprocess(pat);\
| ^
sgrep.c:585:3: warning: passing arguments to 'prep_bm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:311:15: note: expanded from macro 'PROCESS_PATTERN'
311 | else prep_bm(pat, m);\
| ^
sgrep.c:585:3: warning: passing arguments to 'prep4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:313:21: note: expanded from macro 'PROCESS_PATTERN'
313 | else if (DNA) prep4(pat, m);\
| ^
sgrep.c:585:3: warning: passing arguments to 'am_preprocess' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:314:40: note: expanded from macro 'PROCESS_PATTERN'
314 | else if(m >= LONG_APPX) am_preprocess(pat);\
| ^
sgrep.c:585:3: warning: passing arguments to 'prep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:316:7: note: expanded from macro 'PROCESS_PATTERN'
316 | prep(pat, m, D);\
| ^
sgrep.c:585:3: warning: passing arguments to 'initmask' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
sgrep.c:317:11: note: expanded from macro 'PROCESS_PATTERN'
317 | initmask(pat, Mask, m, 0, &endposition);\
| ^
sgrep.c:608:22: warning: passing arguments to 'monkey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
608 | if (-1 == monkey(pat, m, text+start, text+end, oldpat, oldm)) {| ^
sgrep.c:609:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
609 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:616:18: warning: passing arguments to 'bm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
616 | if (-1 == bm(pat, m, text+start, text+end, oldpat, oldm)) {| ^
sgrep.c:617:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
617 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:626:23: warning: passing arguments to 'monkey4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
626 | if (-1 == monkey4( pat, m, text+start, text+end, D , oldpat, oldm )) {| ^
sgrep.c:627:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
627 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:635:25: warning: passing arguments to 'a_monkey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
635 | if (-1 == a_monkey(pat, m, text+start, text+end, D, oldpat, oldm)) {| ^
sgrep.c:636:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
636 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:643:22: warning: passing arguments to 'agrep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
643 | if (-1 == agrep(pat, m, text+start, text+end, D, oldpat, oldm)) {| ^
sgrep.c:644:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
644 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:663:20: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
663 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:671:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
671 | free_buf(fd, text);
| ^~~~
sgrep.c:122:36: note: passing argument to parameter 'sbuf' here
122 | extern void free_buf(int fd, char *sbuf);
| ^
sgrep.c:260:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
260 | int sgrep(in_pat, in_m, fd, D, samepattern)
| ^
sgrep.c:800:38: warning: passing arguments to 'exists_tcompressed_word' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
800 | if (-1 == exists_tcompressed_word(pat, m, curtextbegin, text - curtextbegin + m, EASYSEARCH)) {| ^
sgrep.c:869:43: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
869 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:869:85: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
869 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:873:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
873 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:873:73: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
873 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:897:34: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
897 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:899:39: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
899 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:935:34: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
935 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:937:39: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
937 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:988:31: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
988 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:990:36: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
990 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:692:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
692 | int bm(pat, m, text, textend, oldpat, oldm)
| ^
sgrep.c:129:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
129 | int bm(); /* sgrep.c */
| ^
sgrep.c:1021:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1021 | static void initmask(pattern, Mask, m, D, endposition)
| ^
sgrep.c:156:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
156 | static void initmask();
| ^
sgrep.c:1052:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1052 | prep(Pattern, M, D) /* preprocessing for partitioning_bm */
| ^
sgrep.c:159:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
159 | static void prep();
| ^
sgrep.c:1194:24: warning: passing arguments to 's_output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1194 | if (-1 == s_output(text, ¤tpos, textbegin, textend, &lastout, pat, M, oldpat, oldM)) return -1;
| ^
sgrep.c:1227:24: warning: passing arguments to 's_output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1227 | if (-1 == s_output(text, ¤tpos, textbegin, textend, &lastout, pat, M, oldpat, oldM)) return -1;
| ^
sgrep.c:1243:31: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1243 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1245:36: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1245 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1100 | agrep( pat, M, text, textend, D, oldpat, oldM)
| ^
sgrep.c:128:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
128 | int agrep(); /* sgrep.c */
| ^
sgrep.c:1318:36: warning: passing arguments to 'exists_tcompressed_word' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1318 | if (-1 == exists_tcompressed_word(pat, m, curtextbegin, text + *i - curtextbegin + m, EASYSEARCH)) {| ^
sgrep.c:1337:31: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1337 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, *lastout, curtextbegin - *lastout, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1339:36: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1339 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, *lastout, curtextbegin - *lastout, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1421:39: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1421 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text + oldi-curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1421:87: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1421 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text + oldi-curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1425:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1425 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text + oldi-curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1425:75: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1425 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text + oldi-curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1445:30: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1445 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1448:35: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1448 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1273:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1273 | s_output(text, i, textbegin, textend, lastout, pat, m, oldpat, oldm)
| ^
sgrep.c:133:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
133 | int s_output(); /* sgrep.c */
| ^
sgrep.c:1484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1484 | prep_bm(Pattern, m)
| ^
sgrep.c:161:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
161 | static void prep_bm();
| ^
sgrep.c:1624:38: warning: passing arguments to 'exists_tcompressed_word' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1624 | if (-1 == exists_tcompressed_word(pat, m, curtextbegin, text - curtextbegin + m, EASYSEARCH)) {| ^
sgrep.c:1691:43: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1691 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1691:85: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1691 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1695:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1695 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1695:73: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1695 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1718:34: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1718 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1720:39: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1720 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1756:34: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1756 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1758:39: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1758 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1806:31: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1806 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1808:36: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1808 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1539:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1539 | monkey( pat, m, text, textend )
| ^
sgrep.c:131:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
131 | int monkey(); /* sgrep.c */
| ^
sgrep.c:1869:20: warning: passing arguments to 'verify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1869 | if((pos = verify(m, 2*m+D, D, pat, oldtext)) > 0) {| ^
sgrep.c:1957:44: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1957 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1957:86: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1957 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1961:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1961 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1961:74: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1961 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:1984:35: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1984 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:1986:40: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1986 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:2022:35: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2022 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:2024:40: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2024 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:2071:31: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2071 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:2073:36: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2073 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:1837:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1837 | a_monkey( pat, m, text, textend, D )
| ^
sgrep.c:127:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
127 | int a_monkey(); /* sgrep.c */
| ^
sgrep.c:2105:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
2105 | m = strlen(Pattern);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
sgrep.c:2100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2100 | am_preprocess(Pattern)
| ^
sgrep.c:157:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
157 | static void am_preprocess();
| ^
sgrep.c:2117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2117 | verify(m, n, D, pat, text)
| ^
sgrep.c:134:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
134 | int verify(); /* sgrep.c */
| ^
sgrep.c:2148:37: warning: unsequenced modification and access to 'last' [-Wunsequenced]
2148 | if(A[last] < D) A[last+1] = A[last++]+1;
| ~~~~ ^
sgrep.c:2170:37: warning: unsequenced modification and access to 'last' [-Wunsequenced]
2170 | if(B[last] < D) B[last+1] = B[last++]+1;
| ~~~~ ^
sgrep.c:2191:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
2191 | m = strlen(Pattern);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
sgrep.c:2185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2185 | m_preprocess(Pattern)
| ^
sgrep.c:158:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
158 | static void m_preprocess();
| ^
sgrep.c:2340:44: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
2340 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:2340:86: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
2340 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:2344:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
2344 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:2344:74: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
2344 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
sgrep.c:2367:35: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2367 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:2369:40: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2369 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, curtextbegin, curtextend-curtextbegin, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:2405:35: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2405 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:2407:40: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2407 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, curtextbegin - lastout, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:2451:31: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2451 | newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_finalfp, -1, EASYSEARCH);
| ^
sgrep.c:2453:36: warning: passing arguments to 'quick_tuncompress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2453 | if ((newlen = quick_tuncompress(FREQ_FILE, STRING_FILE, lastout, textend - lastout + 1, agrep_outbuffer, agrep_outlen - agrep_outpointer, EASYSEARCH)) > 0) {| ^
sgrep.c:2219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2219 | monkey4( pat, m, text, textend, D )
| ^
sgrep.c:132:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
132 | int monkey4(); /* sgrep.c */
| ^
sgrep.c:2495:14: warning: passing arguments to 'blog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2495 | BSize = blog(4, m);
| ^
sgrep.c:2480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2480 | prep4(Pattern, m)
| ^
sgrep.c:160:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
160 | static void prep4();
| ^
sgrep.c:2517:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
2517 | blog(base, m )
| ^
sgrep.c:130:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
130 | int blog(); /* sgrep.c */
| ^
151 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o newmgrep.o newmgrep.c
newmgrep.c:218:29: warning: passing arguments to 'fill_buf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
218 | while((num_read = fill_buf(mfp, buf+length, 2*BLOCKSIZE)) > 0) {| ^
newmgrep.c:224:55: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
224 | free_buf(mfp, buf);
| ^~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:285:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
285 | free_buf(mfp, buf);
| ^~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:320:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
320 | p = strlen(patt[i]);
| ^~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:407:35: note: passing argument to parameter '__s' here
407 | extern size_t strlen (const char *__s)
| ^
newmgrep.c:346:39: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
346 | free_buf(mfp, buf);
| ^~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:357:34: warning: passing arguments to 'f_prep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
357 | for(i=1; i<=num_pat; i++) f_prep(i, patt[i]);
| ^
newmgrep.c:360:35: warning: passing arguments to 'f_prep1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
360 | for(i=1; i<=num_pat; i++) f_prep1(i, patt[i]);
| ^
newmgrep.c:369:23: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
369 | free_buf(mfp, buf);
| ^~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
188 | prepf(mfp, mbuf, mlen)
| ^
newmgrep.c:476:30: warning: passing arguments to 'fill_buf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
476 | while( (num_read = fill_buf(fd, text+MAXLINE, 2*BLOCKSIZE)) > 0)
| ^
newmgrep.c:482:47: warning: passing arguments to 'tuncompressible' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
482 | if ((TCOMPRESSED == ON) && tuncompressible(text+MAXLINE, num_read)) {| ^
newmgrep.c:524:34: warning: passing arguments to 'm_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
524 | if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}}| ^
newmgrep.c:524:68: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
524 | if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}}| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:525:34: warning: passing arguments to 'monkey1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
525 | else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}}| ^
newmgrep.c:525:68: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
525 | else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}}| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:538:62: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
538 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:546:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
546 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:556:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
556 | strncpy(text+start, text+end, residue);
| ^~~~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:144:40: note: passing argument to parameter '__dest' here
144 | extern char *strncpy (char *__restrict __dest,
| ^
newmgrep.c:556:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
556 | strncpy(text+start, text+end, residue);
| ^~~~~~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:145:32: note: passing argument to parameter '__src' here
145 | const char *__restrict __src, size_t __n)
| ^
newmgrep.c:560:18: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
560 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:581:22: warning: passing arguments to 'm_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
581 | if(SHORT) m_short(text, start, end);
| ^
newmgrep.c:582:22: warning: passing arguments to 'monkey1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
582 | else monkey1(text, start, end);
| ^
newmgrep.c:595:62: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
595 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:603:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
603 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:608:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
608 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:621:47: warning: passing arguments to 'tuncompressible' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
621 | if ((TCOMPRESSED == ON) && tuncompressible(text+MAXLINE, num_read)) {| ^
newmgrep.c:653:34: warning: passing arguments to 'm_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
653 | if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}}| ^
newmgrep.c:653:68: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
653 | if(SHORT) { if (-1 == m_short(text, start, end)) {free_buf(fd, text); return -1;}}| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:654:34: warning: passing arguments to 'monkey1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
654 | else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}}| ^
newmgrep.c:654:68: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
654 | else { if (-1 == monkey1(text, start, end)) {free_buf(fd, text); return -1;}}| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:667:62: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
667 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:675:46: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
675 | free_buf(fd, text);
| ^~~~
./agrep.h:140:36: note: passing argument to parameter 'sbuf' here
140 | extern void free_buf(int fd, char *sbuf);
| ^
newmgrep.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
460 | mgrep(fd)
| ^
newmgrep.c:690:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
690 | countline(text, len)
| ^
newmgrep.c:778:39: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
778 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
newmgrep.c:778:81: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
778 | fprintf(agrep_finalfp, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
newmgrep.c:782:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
782 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
newmgrep.c:782:69: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
782 | sprintf(s, "@%d{%d} ", CurrentByteOffset - (text -curtextbegin), curtextend-curtextbegin);| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
newmgrep.c:699:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
699 | print_options(pat_index, text, curtextbegin, curtextend)
| ^
newmgrep.c:976:70: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
976 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:985:69: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
985 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:1000:68: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1000 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:1014:67: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1014 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
799 | monkey1( text, start, end )
| ^
newmgrep.c:122:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
122 | int monkey1(); /* newmgrep.c */
| ^
newmgrep.c:1453:69: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1453 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:1462:68: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1462 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:1476:67: warning: passing arguments to 'eval_tree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1476 | if (AComplexBoolean && dd(curtextbegin, curtextend) && eval_tree(AParse, amatched_terminals)) {| ^
newmgrep.c:1296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1296 | m_short(text, start, end)
| ^
newmgrep.c:123:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
123 | int m_short(); /* newmgrep.c */
| ^
newmgrep.c:1721:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1721 | f_prep(pat_index, Pattern)
| ^
newmgrep.c:145:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
145 | static void f_prep();
| ^
newmgrep.c:1779:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
1779 | f_prep1(pat_index, Pattern)
| ^
newmgrep.c:146:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
146 | static void f_prep1();
| ^
54 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o utilitie.o utilitie.c
utilitie.c:22:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
22 | Stack Push(s, v)
| ^
utilitie.c:38:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
38 | Re_node Pop(s)
| ^
utilitie.c:54:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
54 | Re_node Top(s)
| ^
utilitie.c:61:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
61 | int Size(s)
| ^
utilitie.c:74:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
74 | int occurs_in(n, p)
| ^
utilitie.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
86 | Pset pset_union(s1, s2)
| ^
utilitie.c:112:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
112 | Pset create_pos(n)
| ^
utilitie.c:127:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
127 | subset_pset(s1, s2)
| ^
utilitie.c:142:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
142 | int eq_pset(s1, s2)
| ^
utilitie.c:161:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
161 | if (!strncmp(line, word, wordlen)) {| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:159:33: note: passing argument to parameter '__s1' here
159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
| ^
utilitie.c:161:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
161 | if (!strncmp(line, word, wordlen)) {| ^~~~
/nix/store/8hc83l288p7fyb6z7mm2zk80dvqmk7gi-filc-glibc-2.40/include/string.h:159:51: note: passing argument to parameter '__s2' here
159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
| ^
utilitie.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
149 | word_exists(word, wordlen, line, linelen)
| ^
12 warnings generated.
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o codepage.o codepage.c
cc -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=0 -c -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=0 -DHAVE_SYS_NDIR_H=0 -DHAVE_NDIR_H=0 -DUTIME=1 -DISO_CHAR_SET=1 -DS_IFLNK=-1 -Dlstat=stat -O3 -c -o agrephlp.o agrephlp.c
cc -o agrep follow.o asearch.o asearch1.o agrep.o bitap.o checkfil.o compat.o dummyfil.o main.o maskgen.o parse.o checksg.o preproce.o delim.o asplit.o recursiv.o sgrep.o newmgrep.o utilitie.o codepage.o agrephlp.o
→ installPhase
→ fixupPhase
moving /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23/doc to /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23/share/doc
shrinking RPATHs of ELF executables and libraries in /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23
shrinking /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23/bin/agrep
checking for references to /build/ in /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23...
patching script interpreter paths in /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23
stripping (with command strip and flags -S -p) in /nix/store/irpzpnvy6akvyhzfrbpa5nsy4pxwc1g9-agrep-x86_64-unknown-linux-gnufilc0-3.41.5-unstable-2022-03-23/bin
End of log