activa -Wextra -Wpedantic i neteja warnings

This commit is contained in:
2026-05-18 22:11:07 +02:00
parent 332078de15
commit 2b45d40c6f
9 changed files with 45 additions and 13 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ Director::Director() {
// Crea el subdirectorio shaders/ dentro de system_folder_ sin modificar system_folder_
{
std::string shaders_dir = system_folder_ + "/shaders";
struct stat st = {.st_dev = 0};
struct stat st{};
if (stat(shaders_dir.c_str(), &st) == -1) {
errno = 0;
#ifdef _WIN32
@@ -316,7 +316,7 @@ void Director::createSystemFolder(const std::string& folder) {
}
#endif
struct stat st = {.st_dev = 0};
struct stat st{};
if (stat(system_folder_.c_str(), &st) == -1) {
errno = 0;
#ifdef _WIN32