activa -Wextra -Wpedantic i neteja warnings

This commit is contained in:
2026-05-18 21:53:32 +02:00
parent 78682b7071
commit e47bc5188a
8 changed files with 45 additions and 13 deletions
+2 -2
View File
@@ -72,7 +72,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
@@ -319,7 +319,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