From 4cc226b57af3691b9c6062499ce0a18755047c59 Mon Sep 17 00:00:00 2001 From: Timerix Date: Sun, 9 Nov 2025 18:37:18 +0500 Subject: [PATCH] enabled more warnings --- include/tlibc/std.h | 1 - project.config | 13 +++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/include/tlibc/std.h b/include/tlibc/std.h index ab47485..f58fc33 100755 --- a/include/tlibc/std.h +++ b/include/tlibc/std.h @@ -22,7 +22,6 @@ typedef int64_t i64; typedef uint64_t u64; typedef float f32; typedef double f64; -typedef void* ptr; #if !__cplusplus && !defined(bool) typedef u8 bool; diff --git a/project.config b/project.config index dc4170b..4eab4e0 100644 --- a/project.config +++ b/project.config @@ -6,8 +6,17 @@ CMP_C="gcc" CMP_CPP="g++" STD_C="c99" STD_CPP="c++11" -WARN_C="-Wall -Wextra -Werror=return-type -Werror=pointer-arith" -WARN_CPP="-Wall -Wextra -Werror=return-type -Werror=pointer-arith" +WARN_C="-Wall -Wextra + -Wduplicated-branches + -Wduplicated-cond + -Wformat=2 + -Wmissing-include-dirs + -Wshadow + -Werror=return-type + -Werror=pointer-arith + -Werror=init-self + -Werror=incompatible-pointer-types" +WARN_CPP="$WARN_C" SRC_C="$(find src -name '*.c')" SRC_CPP="$(find src -name '*.cpp')"