]> git.klezlab.it Git - klez/parrotsay-lite.git/commitdiff
added optional static analysis check; explicitly set C23 standard
authorFederico klez Culloca <klez@klezlab.it>
Sat, 13 Jun 2026 18:57:59 +0000 (20:57 +0200)
committerFederico klez Culloca <klez@klezlab.it>
Sat, 13 Jun 2026 18:57:59 +0000 (20:57 +0200)
Makefile

index 456b512f05dc0b7c2eb3168f4a3c5b866577d8f9..ac9256f35ebd0a62680716a475b944dab5b1533e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,10 @@ parrotsay : parrotsay.o
                cc -o parrotsay parrotsay.o
 
 parrotsay.o : parrotsay.c
-               cc -c parrotsay.c
+               cc -c parrotsay.c -std=c23
 
 clean :
                rm parrotsay parrotsay.o
+
+check : parrotsay.c
+               cppcheck parrotsay.c --std=c23 --check-level=exhaustive