ahocorasick icon indicating copy to clipboard operation
ahocorasick copied to clipboard

variable id set but not used

Open Cat22 opened this issue 2 years ago • 0 comments

What is the purpose of id? How do you use it? src/main.c: In function ‘sample_code’: src/main.c:29:9: warning: variable ‘id’ set but not used [-Wunused-but-set-variable] 29 | int id[10] = {0}; | ^~ src/main.c: In function ‘sample_code2’: src/main.c:50:9: warning: variable ‘id’ set but not used [-Wunused-but-set-variable] 50 | int id[10] = {0}; | ^~ src/main.c: In function ‘sample_code3’: src/main.c:73:9: warning: variable ‘id’ set but not used [-Wunused-but-set-variable] 73 | int id[10] = {0}; | ^~ src/main.c: In function ‘sample_code_bench_file’: src/main.c:97:9: warning: variable ‘id’ set but not used [-Wunused-but-set-variable] 97 | int id[10] = {0}; | ^~ src/main.c: In function ‘sample_code_thread’: src/main.c:143:9: warning: variable ‘id’ set but not used [-Wunused-but-set-variable] 143 | int id[10] = {0}; | ^~

Cat22 avatar Jan 24 '23 00:01 Cat22