SQLite User Forum

Warnings compiling the spellfix1 virtual table
Login

Warnings compiling the spellfix1 virtual table

(1) By Nuno Cruces (ncruces) on 2024-09-27 14:56:36 [source]

I'm getting these warnings while compiling spellfix.c with Clang 18.1:

../sqlite3/ext/spellfix.c:419:9: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
  419 |   if( nB<(sizeof(mStack)*4)/(sizeof(mStack[0])*5) ){
      |       ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../sqlite3/ext/spellfix.c:3051:13: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
 3051 |   for(i=0; i<sizeof(translit)/sizeof(translit[0])-1; i++){
      |            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.

Nothing major, but thought you might want to fix them.

(2) By Stephan Beal (stephan) on 2024-09-27 16:20:40 in reply to 1 [link] [source]

I'm getting these warnings while compiling spellfix.c with Clang 18.1:

Those were just squashed. Thank you for the report.