hanai3Bi / Switch-OC-Suite

Overclocking suite for Nintendo Switch devices running Atmosphere CFW
Other
301 stars 19 forks source link

Fix compiler errors in loader #19

Closed masagrator closed 1 year ago

masagrator commented 1 year ago

Dunno if this is because you still use GCC 12, but it's not possible to compile it with GCC 13 without those fixes.

-Wno-unused-return is used because otherwise oc_test.cpp throws error at fread. int i is now size_t otherwise there are errors related to comparison of different signedness unix strlcpy and strlcat were replaced with C standard strncpy and strncat

Dunno what this is used for, just somebody asked me why they can't compile it.