Fix 1994/ldb for clang in linux

It objected to the incompatible pointer type passed to time(2) as what
was passed to time(2) was an int, not a time_t *. One way would be to
disable the warning but I chose to cast the parameter to a time_t * to
get rid of the warning wanting to be triggered at all.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-07 10:38:29 -07:00
1 parent 76b7f121d5
commit 29889fe686
3 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-trigraphs
CSILENCE= -Wno-trigraphs -Wno-int-conversion
# Common C compiler warning flags
#
+1 -1
View File
@@ -1 +1 @@
int _,O,__??('}'??);main(){while(O?(fgets((rand()%O++?':':_)+__,232,stdin))||puts(&__??(_??))&_:(srand(time((O+++_))),0)||O);}
int _,O,__??('}'??);main(){while(O?(fgets((rand()%O++?':':_)+__,232,stdin))||puts(&__??(_??))&_:(srand(time((time_t *)(O+++_))),0)||O);}