fix warnings

This commit is contained in:
nyyu 2021-09-05 22:04:18 +02:00
parent a75bb2d412
commit f9f6c3fcbd
2 changed files with 5 additions and 5 deletions

View File

@ -57,7 +57,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \
CFLAGS += `curl-config --cflags` CFLAGS += `curl-config --cflags`
CFLAGS += `sdl2-config --cflags` `freetype-config --cflags` CFLAGS += `sdl2-config --cflags` `freetype-config --cflags`
CFLAGS += $(INCLUDE) -D__SWITCH__ -Wall #-Werror -D__DEBUG__ -DNXLINK_DEBUG CFLAGS += $(INCLUDE) -D__SWITCH__ -Wall -Wextra -Wno-unused-parameter #-Werror -D__DEBUG__ -DNXLINK_DEBUG
CXXFLAGS := $(CFLAGS) -fno-rtti -std=gnu++17 CXXFLAGS := $(CFLAGS) -fno-rtti -std=gnu++17

View File

@ -207,7 +207,7 @@ namespace inst::util {
if (deviceToClock > 2 || deviceToClock < 0) return { 0,0 }; if (deviceToClock > 2 || deviceToClock < 0) return { 0,0 };
if (hosversionAtLeast(8, 0, 0)) { if (hosversionAtLeast(8, 0, 0)) {
ClkrstSession session = { 0 }; ClkrstSession session = {};
PcvModuleId pcvModuleId; PcvModuleId pcvModuleId;
pcvInitialize(); pcvInitialize();
clkrstInitialize(); clkrstInitialize();
@ -320,7 +320,7 @@ namespace inst::util {
double GetAvailableSpace(const char* path) double GetAvailableSpace(const char* path)
{ {
struct statvfs stat = { 0 }; struct statvfs stat = {};
if (statvfs(path, &stat) != 0) { if (statvfs(path, &stat) != 0) {
// error happens, just quits here // error happens, just quits here
@ -333,7 +333,7 @@ namespace inst::util {
double amountOfDiskSpaceUsed(const char* path) double amountOfDiskSpaceUsed(const char* path)
{ {
struct statvfs stat = { 0 }; struct statvfs stat = {};
if (statvfs(path, &stat) != 0) { if (statvfs(path, &stat) != 0) {
// error happens, just quits here // error happens, just quits here
@ -349,7 +349,7 @@ namespace inst::util {
double totalsize(const char* path) double totalsize(const char* path)
{ {
struct statvfs stat; struct statvfs stat = {};
if (statvfs(path, &stat) != 0) { if (statvfs(path, &stat) != 0) {
// error happens, just quits here // error happens, just quits here