improve fix of 1996/dalbec C code and Makefile

This commit is contained in:
Landon Curt Noll committed 2023-03-18 21:50:38 -07:00
1 parent 9b6b5a0376
commit ccc31f5ba2
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -63,7 +63,7 @@ X11_INCDIR= /opt/X11/include
# Common C compiler warnings to silence
#
#CSILENCE=
CSILENCE= -Wno-logical-not-parentheses -Wno-bool-operation -Wno-uninitialized
CSILENCE= -Wno-logical-not-parentheses -Wno-bool-operation
# Common C compiler warning flags
#
@@ -182,7 +182,6 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "NOTE: This entry uses non-standard args to main() that do not work with modern compilers."
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
+1 -1
View File
@@ -13,4 +13,4 @@ int cain(int I, char **O, int O0, int OO, int l)
:cain(I-I-I-I-I,O,I+I-I+I,I,0)
:cain(~!!I-!!I,O,atoi(1[O]),1,atoi(0[O]));
}
int main(int I, char **O) { int O0,OO,l; return cain(I,O,O0,OO,l); }
int main(int I, char **O) { int O0=0,OO=0,l=0; return cain(I,O,O0,OO,l); }