QB64 Phoenix Edition v3.4.0 Released!
#10
I am not C savvy but I get this warning when building QB64 with another toolchain

Code: (Select All)
internal\c/parts/gui/tinyfiledialogs.c: In function 'tinyfd_openFileDialog':
internal\c/parts/gui/tinyfiledialogs.c:3112:1: warning: function may return address of local variable [-Wreturn-local-addr]
3112 | }
      | ^
internal\c/parts/gui/tinyfiledialogs.c:3060:14: note: declared here
3060 |         char lBuff[MAX_PATH_OR_CMD];
      |              ^~~~~
internal\c/parts/gui/tinyfiledialogs.c:3060:14: note: declared here

the warning is eliminated if you add static to the lBuff declaration

Code: (Select All)
static char lBuff[MAX_PATH_OR_CMD];
Reply


Messages In This Thread
RE: QB64 Phoenix Edition v3.4.0 Released! - by Jack - 11-01-2022, 09:54 PM



Users browsing this thread: 13 Guest(s)