Skip to content

Instantly share code, notes, and snippets.

@vjcitn
Created March 23, 2025 18:21
Show Gist options
  • Save vjcitn/a356b1627be73cf502af253b03ee2f3e to your computer and use it in GitHub Desktop.
Save vjcitn/a356b1627be73cf502af253b03ee2f3e to your computer and use it in GitHub Desktop.
log events for making R4.6
make[4]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/tre'
make[4]: Entering directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/tre'
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c regcomp.c -o regcomp.o
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c regerror.c -o regerror.o
regcomp.c: In function ‘tre_regncomp’:
regcomp.c:88:14: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
88 | wlen = wcptr - wregex;
| ^~~~~
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c regexec.c -o regexec.o
In file included from regexec.c:53:
regexec.c: In function ‘tre_match’:
regexec.c:156:36: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
156 | tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
regexec.c: In function ‘tre_match_approx’:
regexec.c:307:36: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
307 | tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-ast.c -o tre-ast.o
tre-ast.c: In function ‘tre_ast_new_iter’:
tre-ast.c:67:19: warning: conversion from ‘int’ to ‘unsigned char:1’ may change value [-Wconversion]
67 | iter->minimal = minimal;
| ^~~~~~~
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-compile.c -o tre-compile.o
In file included from tre-compile.c:30:
tre-compile.c: In function ‘tre_add_tags’:
tre-compile.c:248:37: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
248 | int *p = xmalloc(sizeof(*p) * (i + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-match-approx.c -o tre-match-approx.o
In file included from tre-compile.c:24:
tre-compile.c: In function ‘tre_set_union’:
tre-compile.c:1104:50: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1104 | new_set = tre_mem_calloc(mem, sizeof(*new_set) * (s1 + s2 + 1));
| ^
tre-mem.h:45:71: note: in definition of macro ‘tre_mem_calloc’
45 | #define tre_mem_calloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 1, size)
| ^~~~
tre-compile.c:1123:7: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1123 | * (i + num_tags + 1)));
| ^
tre-mem.h:40:70: note: in definition of macro ‘tre_mem_alloc’
40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size)
| ^~~~
tre-compile.c:1167:52: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1167 | new_tags = tre_mem_alloc(mem, sizeof(*new_tags) * (i + 1));
| ^
tre-mem.h:40:70: note: in definition of macro ‘tre_mem_alloc’
40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size)
| ^~~~
tre-compile.c: In function ‘tre_match_empty’:
tre-compile.c:1254:18: warning: conversion from ‘long int’ to ‘int’ may change value [-Wconversion]
1254 | *assertions |= lit->code_max;
| ^~~
In file included from tre-compile.c:30:
tre-compile.c: In function ‘tre_compute_nfl’:
tre-compile.c:1473:32: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1473 | tags = xmalloc(sizeof(*tags) * (num_tags + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c:1522:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1522 | tags = xmalloc(sizeof(int) * (num_tags + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c: In function ‘tre_make_trans’:
tre-compile.c:1645:41: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1645 | xmalloc(sizeof(*trans->neg_classes) * (i + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c:1673:46: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1673 | trans->tags = xmalloc(sizeof(*trans->tags) * (i + j + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c: In function ‘tre_compile’:
tre-compile.c:1918:23: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
1918 | parse_ctx.cur_max = (cflags & REG_USEBYTES) ? 1 : TRE_MB_CUR_MAX;
| ^
tre-compile.c:1923:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
1923 | preg->re_nsub = parse_ctx.submatch_id - 1;
| ^~~~~~~~~
tre-compile.c:1945:26: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1945 | tnfa->num_submatches = parse_ctx.submatch_id;
| ^~~~~~~~~
In file included from tre-compile.c:30:
tre-compile.c:1964:8: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1964 | * (tnfa->num_tags + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c:1969:28: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
1969 | sizeof(*tag_directions) * (tnfa->num_tags + 1));
| ^
In file included from tre-compile.c:30:
tre-compile.c:2025:32: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2025 | counts = xmalloc(sizeof(int) * parse_ctx.position);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c:2029:30: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2029 | offs = xmalloc(sizeof(int) * parse_ctx.position);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c:2048:27: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2048 | tnfa->num_transitions = add;
| ^~~
tre-compile.c:2089:22: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
2089 | tnfa->first_char = k;
| ^
In file included from tre-compile.c:30:
tre-compile.c:2155:47: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2155 | initial[i].tags = xmalloc(sizeof(*p->tags) * (j + 1));
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-compile.c:2158:54: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2158 | memcpy(initial[i].tags, p->tags, sizeof(*p->tags) * (j + 1));
| ^
tre-compile.c:2174:27: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
2174 | tnfa->num_transitions = add;
| ^~~
tre-match-approx.c: In function ‘tre_tnfa_run_approx’:
tre-match-approx.c:275:39: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
275 | int tag_bytes = sizeof(*tmp_tags) * num_tags;
| ^
tre-match-approx.c:275:21: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
275 | int tag_bytes = sizeof(*tmp_tags) * num_tags;
| ^~~~~~
tre-match-approx.c:277:43: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
277 | int reach_bytes = sizeof(*reach_next) * tnfa->num_states;
| ^
tre-match-approx.c:277:23: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
277 | int reach_bytes = sizeof(*reach_next) * tnfa->num_states;
| ^~~~~~
tre-match-approx.c:282:17: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
282 | total_bytes += (sizeof(long) - 1) * 3;
| ^~
tre-match-approx.c:282:20: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
282 | total_bytes += (sizeof(long) - 1) * 3;
| ^
In file included from tre-match-approx.c:54:
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-approx.c:328:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
328 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-approx.c:328:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
328 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-approx.c:328:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
328 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-approx.c:328:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
328 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:349:30: note: in expansion of macro ‘CHECK_ASSERTIONS’
349 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-approx.c:458:17: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
458 | * TRE_M_LAST * (depth + 1));
| ^
tre-match-approx.c:494:20: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
494 | size_t os = deque_start - ringbuffer,
| ^~~~~~~~~~~
tre-match-approx.c:495:10: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
495 | oe = deque_end - ringbuffer;
| ^~~~~~~~~
In file included from tre-match-approx.c:56:
tre-match-approx.c:500:46: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
500 | xmalloc(sizeof(tre_tnfa_approx_reach_t *) * rb_size) :
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-match-approx.c:501:59: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
501 | xrealloc(ringbuffer, sizeof(tre_tnfa_approx_reach_t *) * rb_size));
| ^
xmalloc.h:70:46: note: in definition of macro ‘xrealloc’
70 | #define xrealloc(ptr, new_size) realloc(ptr, new_size)
| ^~~~~~~~
In file included from tre-match-approx.c:54:
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:571:28: note: in expansion of macro ‘CHECK_ASSERTIONS’
571 | if (trans->assertions && CHECK_ASSERTIONS(trans->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-approx.c:617:23: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
617 | * TRE_M_LAST * (depth + 1));
| ^
In file included from tre-match-approx.c:54:
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-approx.c:682:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
682 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-approx.c:682:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
682 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-approx.c:682:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
682 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-approx.c:682:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
682 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-approx.c:706:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
706 | && (CHECK_ASSERTIONS(trans->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-approx.c:803:21: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
803 | * TRE_M_LAST * (depth + 1));
| ^
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-match-backtrack.c -o tre-match-backtrack.o
In file included from tre-match-backtrack.c:74:
tre-match-backtrack.c: In function ‘tre_tnfa_run_backtrack’:
tre-match-backtrack.c:277:36: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
277 | tags = xmalloc(sizeof(*tags) * tnfa->num_tags);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-match-backtrack.c:295:50: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
295 | states_seen = xmalloc(sizeof(*states_seen) * tnfa->num_states);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-match-backtrack.c:320:28: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
320 | str_source->rewind(pos + pos_add_next, str_source->context);
| ^
In file included from tre-match-backtrack.c:72:
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-backtrack.c:321:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
321 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-backtrack.c:321:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
321 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-backtrack.c:321:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
321 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-backtrack.c:321:3: note: in expansion of macro ‘GET_NEXT_WCHAR’
321 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:337:34: note: in expansion of macro ‘CHECK_ASSERTIONS’
337 | if (trans_i->assertions && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
In file included from tre-match-backtrack.c:71:
tre-match-backtrack.c:149:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
149 | sizeof(*tags) * tnfa->num_tags); \
| ^
tre-mem.h:40:70: note: in definition of macro ‘tre_mem_alloc’
40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size)
| ^~~~
tre-match-backtrack.c:352:4: note: in expansion of macro ‘BT_STACK_PUSH’
352 | BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
| ^~~~~~~~~~~~~
tre-match-backtrack.c:429:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
429 | tre_fill_pmatch(bt + 1, pmatch, tnfa->cflags & ~REG_NOSUB,
| ~~~^~~
In file included from tre-match-backtrack.c:72:
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-backtrack.c:508:8: note: in expansion of macro ‘GET_NEXT_WCHAR’
508 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-backtrack.c:508:8: note: in expansion of macro ‘GET_NEXT_WCHAR’
508 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-backtrack.c:508:8: note: in expansion of macro ‘GET_NEXT_WCHAR’
508 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-backtrack.c:508:8: note: in expansion of macro ‘GET_NEXT_WCHAR’
508 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-backtrack.c:537:4: note: in expansion of macro ‘GET_NEXT_WCHAR’
537 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-backtrack.c:537:4: note: in expansion of macro ‘GET_NEXT_WCHAR’
537 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-backtrack.c:537:4: note: in expansion of macro ‘GET_NEXT_WCHAR’
537 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-backtrack.c:537:4: note: in expansion of macro ‘GET_NEXT_WCHAR’
537 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-backtrack.c:551:9: note: in expansion of macro ‘CHECK_ASSERTIONS’
551 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
In file included from tre-match-backtrack.c:71:
tre-match-backtrack.c:149:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
149 | sizeof(*tags) * tnfa->num_tags); \
| ^
tre-mem.h:40:70: note: in definition of macro ‘tre_mem_alloc’
40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size)
| ^~~~
tre-match-backtrack.c:573:5: note: in expansion of macro ‘BT_STACK_PUSH’
573 | BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
| ^~~~~~~~~~~~~
tre-match-backtrack.c:185:32: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
185 | str_source->rewind(pos + pos_add_next, str_source->context); \
| ^
tre-match-backtrack.c:612:8: note: in expansion of macro ‘BT_STACK_POP’
612 | BT_STACK_POP();
| ^~~~~~~~~~~~
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-match-parallel.c -o tre-match-parallel.o
tre-match-parallel.c: In function ‘tre_tnfa_run_parallel’:
tre-match-parallel.c:159:32: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
159 | tbytes = sizeof(*tmp_tags) * num_tags;
| ^
tre-match-parallel.c:159:14: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
159 | tbytes = sizeof(*tmp_tags) * num_tags;
| ^~~~~~
tre-match-parallel.c:160:34: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
160 | rbytes = sizeof(*reach_next) * (tnfa->num_states + 1);
| ^
tre-match-parallel.c:160:14: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
160 | rbytes = sizeof(*reach_next) * (tnfa->num_states + 1);
| ^~~~~~
tre-match-parallel.c:161:33: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
161 | pbytes = sizeof(*reach_pos) * tnfa->num_states;
| ^
tre-match-parallel.c:161:14: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
161 | pbytes = sizeof(*reach_pos) * tnfa->num_states;
| ^~~~~~
tre-match-parallel.c:162:26: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
162 | xbytes = sizeof(int) * num_tags;
| ^
tre-match-parallel.c:162:14: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
162 | xbytes = sizeof(int) * num_tags;
| ^~~~~~
tre-match-parallel.c:165:7: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
165 | + (rbytes + xbytes * tnfa->num_states) * 2 + tbytes + pbytes;
| ^
tre-match-parallel.c:165:50: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
165 | + (rbytes + xbytes * tnfa->num_states) * 2 + tbytes + pbytes;
| ^
tre-match-parallel.c:165:59: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
165 | + (rbytes + xbytes * tnfa->num_states) * 2 + tbytes + pbytes;
| ^
tre-match-parallel.c:164:7: warning: conversion from ‘long unsigned int’ to ‘int’ may change value [-Wconversion]
164 | (sizeof(long) - 1) * 4 /* for alignment paddings */
| ^
In file included from tre-match-parallel.c:64:
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-parallel.c:230:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
230 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-parallel.c:230:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
230 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-parallel.c:230:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
230 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-parallel.c:230:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
230 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:284:12: note: in expansion of macro ‘CHECK_ASSERTIONS’
284 | && CHECK_ASSERTIONS(trans_i->assertions))
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:38:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~
tre-match-parallel.c:344:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
344 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:38:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
38 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-parallel.c:344:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
344 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~
tre-match-parallel.c:344:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
344 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:75:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
75 | pos += pos_add_next; \
| ^~~~~~~~~~~~
tre-match-parallel.c:344:7: note: in expansion of macro ‘GET_NEXT_WCHAR’
344 | GET_NEXT_WCHAR();
| ^~~~~~~~~~~~~~
tre-match-utils.h:151:25: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:151:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
151 | && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:26: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:153:50: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
153 | && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:156:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
156 | && IS_WORD_CHAR(prev_c) == IS_WORD_CHAR(next_c))) \
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
tre-match-utils.h:159:45: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘int’} may change the sign of the result [-Wsign-conversion]
159 | || IS_WORD_CHAR(prev_c) != IS_WORD_CHAR(next_c))))
| ^~~~~~
tre-match-utils.h:141:54: note: in definition of macro ‘IS_WORD_CHAR’
141 | #define IS_WORD_CHAR(c) ((c) == L'_' || tre_isalnum(c))
| ^
tre-match-parallel.c:417:13: note: in expansion of macro ‘CHECK_ASSERTIONS’
417 | && (CHECK_ASSERTIONS(trans_i->assertions)
| ^~~~~~~~~~~~~~~~
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-mem.c -o tre-mem.o
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-parse.c -o tre-parse.o
gcc -I. -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fvisibility=hidden -c tre-stack.c -o tre-stack.o
In file included from tre-stack.c:17:
tre-stack.c: In function ‘tre_stack_new’:
tre-stack.c:43:44: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
43 | s->stack = xmalloc(sizeof(*s->stack) * size);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
tre-stack.c: In function ‘tre_stack_push’:
tre-stack.c:93:56: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
93 | new_buffer = xrealloc(s->stack, sizeof(*new_buffer) * new_size);
| ^
xmalloc.h:70:46: note: in definition of macro ‘xrealloc’
70 | #define xrealloc(ptr, new_size) realloc(ptr, new_size)
| ^~~~~~~~
In file included from tre-parse.c:23:
tre-parse.c: In function ‘tre_new_item’:
tre-parse.c:113:50: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
113 | new_items = xrealloc(array, sizeof(*items) * *max_i);
| ^
xmalloc.h:70:46: note: in definition of macro ‘xrealloc’
70 | #define xrealloc(ptr, new_size) realloc(ptr, new_size)
| ^~~~~~~~
tre-parse.c: In function ‘tre_expand_ctype’:
tre-parse.c:145:12: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
145 | min = c;
| ^
tre-parse.c:146:10: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
146 | max = c;
| ^
tre-parse.c: In function ‘tre_parse_bracket_items’:
tre-parse.c:297:14: warning: conversion to ‘tre_cint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
297 | min = *re;
| ^
tre-parse.c:298:14: warning: conversion to ‘tre_cint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
298 | max = *(re + 2);
| ^
In file included from tre-ast.h:14,
from tre-parse.c:25:
tre-internal.h:170:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘long int’ may change the sign of the result [-Wsign-conversion]
170 | #define MIN(a, b) (((a) <= (b)) ? (a) : (b))
| ^
tre-parse.c:322:11: note: in expansion of macro ‘MIN’
322 | len = MIN(endptr - re - 2, 63);
| ^~~
tre-parse.c:369:20: warning: conversion to ‘tre_cint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
369 | min = max = *re++;
| ^
tre-parse.c:382:40: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
382 | status = tre_new_item(ctx->mem, min, max, &i, &max_i, items);
| ^~~
tre-parse.c:382:45: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
382 | status = tre_new_item(ctx->mem, min, max, &i, &max_i, items);
| ^~~
tre-parse.c:403:41: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
403 | status = tre_new_item(ctx->mem, cmin, ccurr,
| ^~~~
tre-parse.c:403:47: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
403 | status = tre_new_item(ctx->mem, cmin, ccurr,
| ^~~~~
tre-parse.c:412:41: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
412 | status = tre_new_item(ctx->mem, cmin, ccurr,
| ^~~~
tre-parse.c:412:47: warning: conversion to ‘int’ from ‘tre_cint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
412 | status = tre_new_item(ctx->mem, cmin, ccurr,
| ^~~~~
In file included from tre-parse.c:23:
tre-parse.c: In function ‘tre_parse_bracket’:
tre-parse.c:442:34: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
442 | items = xmalloc(sizeof(*items) * max_i);
| ^
xmalloc.h:67:30: note: in definition of macro ‘xmalloc’
67 | #define xmalloc(size) malloc(size)
| ^~~~
In file included from tre-parse.c:24:
tre-parse.c:512:12: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
512 | * (num_neg_classes + 1)));
| ^
tre-mem.h:40:70: note: in definition of macro ‘tre_mem_alloc’
40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size)
| ^~~~
tre-parse.c:553:12: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion]
553 | * (num_neg_classes + 1)));
| ^
tre-mem.h:40:70: note: in definition of macro ‘tre_mem_alloc’
40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size)
| ^~~~
tre-parse.c: In function ‘tre_parse’:
tre-parse.c:1479:33: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1479 | if (tre_isxdigit(ctx->re[0]) && ctx->re < ctx->re_end)
| ~~~~~~~^~~
tre-parse.c:1484:33: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1484 | if (tre_isxdigit(ctx->re[0]) && ctx->re < ctx->re_end)
| ~~~~~~~^~~
tre-parse.c:1506:30: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1506 | if (tre_isxdigit(ctx->re[0]))
| ~~~~~~~^~~
tre-parse.c:1526:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1526 | if (tre_isdigit(*ctx->re))
| ^~~~~~~~
tre-parse.c:1690:21: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1690 | && (tre_isupper(*ctx->re) || tre_islower(*ctx->re)))
| ^~~~~~~~
tre-parse.c:1690:46: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1690 | && (tre_isupper(*ctx->re) || tre_islower(*ctx->re)))
| ^~~~~~~~
tre-parse.c:1703:54: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1703 | tmp1 = tre_ast_new_literal(ctx->mem, tre_toupper(*ctx->re),
| ^~~~~~~~
tre-parse.c:1704:23: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1704 | tre_toupper(*ctx->re),
| ^~~~~~~~
In file included from tre-ast.h:14,
from tre-parse.c:25:
tre-internal.h:95:21: warning: conversion to ‘int’ from ‘wint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
95 | #define tre_toupper towupper
tre-parse.c:1703:42: note: in expansion of macro ‘tre_toupper’
1703 | tmp1 = tre_ast_new_literal(ctx->mem, tre_toupper(*ctx->re),
| ^~~~~~~~~~~
tre-internal.h:95:21: warning: conversion to ‘int’ from ‘wint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
95 | #define tre_toupper towupper
tre-parse.c:1704:11: note: in expansion of macro ‘tre_toupper’
1704 | tre_toupper(*ctx->re),
| ^~~~~~~~~~~
tre-parse.c:1708:54: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1708 | tmp2 = tre_ast_new_literal(ctx->mem, tre_tolower(*ctx->re),
| ^~~~~~~~
tre-parse.c:1709:23: warning: conversion to ‘wint_t’ {aka ‘unsigned int’} from ‘tre_char_t’ {aka ‘const int’} may change the sign of the result [-Wsign-conversion]
1709 | tre_tolower(*ctx->re),
| ^~~~~~~~
In file included from tre-ast.h:14,
from tre-parse.c:25:
tre-internal.h:94:21: warning: conversion to ‘int’ from ‘wint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
94 | #define tre_tolower towlower
tre-parse.c:1708:42: note: in expansion of macro ‘tre_tolower’
1708 | tmp2 = tre_ast_new_literal(ctx->mem, tre_tolower(*ctx->re),
| ^~~~~~~~~~~
tre-internal.h:94:21: warning: conversion to ‘int’ from ‘wint_t’ {aka ‘unsigned int’} may change the sign of the result [-Wsign-conversion]
94 | #define tre_tolower towlower
tre-parse.c:1709:11: note: in expansion of macro ‘tre_tolower’
1709 | tre_tolower(*ctx->re),
| ^~~~~~~~~~~
ar -cr libtre.a regcomp.o regerror.o regexec.o tre-ast.o tre-compile.o tre-match-approx.o tre-match-backtrack.o tre-match-parallel.o tre-mem.o tre-parse.o tre-stack.o
ranlib libtre.a
make[4]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/tre'
make[3]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/tre'
gcc -shared -fopenmp -L/usr/local/lib -o libRblas.so blas.o blas2.o cmplxblas.o cmplxblas2.o -lgfortran -lm -lquadmath
make[4]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/blas'
make[4]: Entering directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/blas'
mkdir -p -- /home/stvjc/SECURE/R-46-sec-src/lib
make[4]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/blas'
make[3]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra/blas'
make[2]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/extra'
make[2]: Entering directory '/home/stvjc/SECURE/R-46-sec-src/src/appl'
making integrate.d from integrate.c
making interv.d from interv.c
making maxcol.d from maxcol.c
making optim.d from optim.c
making pretty.d from pretty.c
making uncmin.d from uncmin.c
make[3]: Entering directory '/home/stvjc/SECURE/R-46-sec-src/src/appl'
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -c integrate.c -o integrate.o
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -c interv.c -o interv.o
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -c maxcol.c -o maxcol.o
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -c optim.c -o optim.o
maxcol.c: In function ‘R_max_col’:
maxcol.c:45:19: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
45 | size_t n_r = *nr; // for indexing like r + c * n_r
| ^
maxcol.c:54:23: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
54 | a = matrix[r + c * n_r];
| ^
maxcol.c:68:20: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
68 | b = matrix[r + c * n_r];
| ^
maxcol.c:81:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
81 | b = matrix[r + c * n_r];
| ^
maxcol.c:88:24: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
88 | b = matrix[r + c * n_r];
| ^
optim.c: In function ‘vect’:
optim.c:32:30: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
32 | return (double *)R_alloc(n, sizeof(double));
| ^
optim.c: In function ‘matrix’:
optim.c:85:34: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
85 | m = (double **) R_alloc((nrh + 1), sizeof(double *));
| ~~~~~^~~~
optim.c:87:32: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
87 | m[i] = (double*) R_alloc((nch + 1), sizeof(double));
| ~~~~~^~~~
optim.c: In function ‘Lmatrix’:
optim.c:96:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
96 | m = (double **) R_alloc(n, sizeof(double *));
| ^
optim.c:98:31: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
98 | m[i] = (double *) R_alloc((i + 1), sizeof(double));
| ~~~^~~~
optim.c: In function ‘vmmin’:
optim.c:137:25: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
137 | l = (int *) R_alloc(n0, sizeof(int));
| ^~
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -c pretty.c -o pretty.o
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fopenmp -fpic -O2 -Wall -Wformat=2 -Wconversion -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-clash-protection -fstack-protector-strong -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -c uncmin.c -o uncmin.o
optim.c: In function ‘lbfgsb’:
optim.c:676:28: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
676 | iwa = (int *) R_alloc(3*n, sizeof(int));
| ~^~
gfortran -fpic -g -O2 -c dchdc.f -o dchdc.o
gfortran -fpic -g -O2 -c dpbfa.f -o dpbfa.o
gfortran -fpic -g -O2 -c dpbsl.f -o dpbsl.o
gfortran -fpic -g -O2 -c dpoco.f -o dpoco.o
gfortran -fpic -g -O2 -c dpodi.f -o dpodi.o
gfortran -fpic -g -O2 -c dpofa.f -o dpofa.o
gfortran -fpic -g -O2 -c dposl.f -o dposl.o
gfortran -fpic -g -O2 -c dqrdc.f -o dqrdc.o
gfortran -fpic -g -O2 -c dqrdc2.f -o dqrdc2.o
gfortran -fpic -g -O2 -c dqrls.f -o dqrls.o
gfortran -fpic -g -O2 -c dqrsl.f -o dqrsl.o
gfortran -fpic -g -O2 -c dqrutl.f -o dqrutl.o
gfortran -fpic -g -O2 -c dsvdc.f -o dsvdc.o
gfortran -fpic -g -O2 -c dtrco.f -o dtrco.o
gfortran -fpic -g -O2 -c dtrsl.f -o dtrsl.o
ar -cr libappl.a integrate.o interv.o maxcol.o optim.o pretty.o uncmin.o dchdc.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o
ranlib libappl.a
make[3]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/appl'
make[2]: Leaving directory '/home/stvjc/SECURE/R-46-sec-src/src/appl'
make[2]: Entering directory '/home/stvjc/SECURE/R-46-sec-src/src/nmath'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment