Esp8266 SPIFFS empty

In recent versions, the board_build.ldscript = .. should be used to set the linker script, maybe that’s the key here. I’d recommend that instead of the build_flags with -T.

Can you post the affected sections of code here? Should be a quick fix, compiler says there’s a function that has to return something (not void) but there are code paths at whose end there is no return <some value>;.