Commit Graph
7 Commits
Author SHA1 Message Date
NRK 235241e5fc remove duplicate declaration 2022-04-29 20:18:11 +06:00
NRK faeebc076c fix all -Wmissing-prototypes warnings 2022-04-29 15:59:13 +06:00
NRK d9284b1193 fix some -Wstrict-prototypes warnings 2022-04-29 15:59:13 +06:00
NRK b155c9f759 check bound _before_ making access 2022-04-24 06:26:32 +06:00
NRK b2ce5a9c54 ensure map isn't NULL
main.c:1460:22: warning: Possible null pointer dereference: map [nullPointer]
	    w3mFuncList[(int)map[c]].func();
	                     ^
	main.c:1503:24: note: Calling function 'escKeyProc', 3rd argument 'NULL' value is 0
	 escKeyProc((int)c, 0, NULL);
	                       ^
	main.c:1438:25: note: Assuming condition is Assuming condition is false
	    if (CurrentKey >= 0 && CurrentKey & K_MULTI) {
	                        ^
	main.c:1460:22: note: Null pointer dereference
	    w3mFuncList[(int)map[c]].func();
	                     ^
2022-04-24 06:17:44 +06:00
NRK 3ab68dd361 properly close va_list 2022-04-24 06:10:12 +06:00
NRK d35241cdbe fix wc_map_range_search() parameter type mismatch
caught by trying to compile on gcc with LTO enabled
2022-02-12 15:33:25 +06:00