SQLite Forum

warning: function may return address of local variable [-Wreturn-local-addr]
Login
Okay, last one on this topic for me, but I'm getting better mileage with -Os and the fix:

gcc version 10.1.1 20200507 (Red Hat 10.1.1-1) (GCC)
-Os

|  text  |   data  |   bss  |   dec |    hex |filename |
|--------|---------|--------|-------|--------|---------|
| 530810 |   8448  |  1784  |541042 |  84172 |sqlite-amalgamation-3310100-fixed.o |
| 530826 |   8448  |  1784  |541058 |  84182 |sqlite-amalgamation-3310100.o |
| 534732 |   8512  |  1784  |545028 |  85104 |sqlite-amalgamation-3320100-fixed.o |
| 534748 |   8512  |  1784  |545044 |  85114 |sqlite-amalgamation-3320100.o       |

Thank you for your work on this, and sqlite as a whole.