wall, wextra, compiler: fix warnings & todos

This commit is contained in:
ProgramSnail 2025-01-23 15:26:54 +03:00
parent c811d5ec50
commit 6d774ad42f
2 changed files with 110 additions and 161 deletions

View file

@ -11,7 +11,7 @@
(mode
(promote (until-clean)))
(action
(run g++ -std=c++20 -DWITH_CHECK -Iinclude/ %{main} %{parser} %{analyzer} %{module_manager} %{runtime} %{obj} -o %{target})))
(run g++ -Wall -Wextra -std=c++20 -DWITH_CHECK -Iinclude/ %{main} %{parser} %{analyzer} %{module_manager} %{runtime} %{obj} -o %{target})))
(rule
(target types.o)
@ -22,7 +22,7 @@
(mode
(promote (until-clean)))
(action
(run gcc -Iinclude/ -DWITH_CHECK -c %{src} -o %{target})))
(run gcc -Wall -Wextra -Iinclude/ -DWITH_CHECK -c %{src} -o %{target})))
(rule
(target interpreter.o)
@ -33,7 +33,7 @@
(mode
(promote (until-clean)))
(action
(run gcc -Iinclude/ -DWITH_CHECK -c %{src} -o %{target})))
(run gcc -Wall -Wextra -Iinclude/ -DWITH_CHECK -c %{src} -o %{target})))
(rule
(target module_manager.o)
@ -44,4 +44,4 @@
(mode
(promote (until-clean)))
(action
(run g++ -Iinclude/ -c %{src} -o %{target})))
(run g++ -Wall -Wextra -Iinclude/ -c %{src} -o %{target})))