Fix some warnings
Ubuntu-20.04, clang-16 (nightly build)
```
Making all in src/lib
protocols/smpp.c:70:17: warning: variable 'pdu_c' set but not used [-Wunused-but-set-variable]
u_int16_t pdu_c = 1;
^
1 warning generated.
third_party/src/ahocorasick.c:173:20: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
thiz->root->root = 1;
^ ~
third_party/src/ahocorasick.c:336:15: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
n->ff = 1;
^ ~
third_party/src/ahocorasick.c:716:21: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
node->final = 1;
[...]
```
This commit is contained in:
+2
-2
@@ -174,8 +174,8 @@ struct edge;
|
||||
typedef struct ac_node
|
||||
{
|
||||
int id; /* Node ID : set after finalize(), only for ac_automata_dump */
|
||||
AC_ALPHABET_t one_alpha,
|
||||
one:1, /* one_char: yes/no */
|
||||
AC_ALPHABET_t one_alpha;
|
||||
unsigned char one:1, /* one_char: yes/no */
|
||||
range:1, /* range symbols start from one_alpha */
|
||||
root:1, /* is root node */
|
||||
final:1, /* 0: no ; 1: yes, it is a final node */
|
||||
|
||||
Reference in New Issue
Block a user