From f9f6c3fcbd039af8de0fa5eec569a3003e201372 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 5 Sep 2021 22:04:18 +0200 Subject: [PATCH] fix warnings --- Makefile | 2 +- source/util/util.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 652207b..5d395d2 100755 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \ CFLAGS += `curl-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 diff --git a/source/util/util.cpp b/source/util/util.cpp index acd29dd..fac437b 100755 --- a/source/util/util.cpp +++ b/source/util/util.cpp @@ -207,7 +207,7 @@ namespace inst::util { if (deviceToClock > 2 || deviceToClock < 0) return { 0,0 }; if (hosversionAtLeast(8, 0, 0)) { - ClkrstSession session = { 0 }; + ClkrstSession session = {}; PcvModuleId pcvModuleId; pcvInitialize(); clkrstInitialize(); @@ -320,7 +320,7 @@ namespace inst::util { double GetAvailableSpace(const char* path) { - struct statvfs stat = { 0 }; + struct statvfs stat = {}; if (statvfs(path, &stat) != 0) { // error happens, just quits here @@ -333,7 +333,7 @@ namespace inst::util { double amountOfDiskSpaceUsed(const char* path) { - struct statvfs stat = { 0 }; + struct statvfs stat = {}; if (statvfs(path, &stat) != 0) { // error happens, just quits here @@ -349,7 +349,7 @@ namespace inst::util { double totalsize(const char* path) { - struct statvfs stat; + struct statvfs stat = {}; if (statvfs(path, &stat) != 0) { // error happens, just quits here