From aec0f0ca64b5b73232375c15018208cf6800c9a0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 25 Nov 2023 10:39:16 -0800 Subject: [PATCH] Add int before register in 1998/schweikh2 That is in main(). It works now and it might be implicit but just in case clang ever has a problem with this it should now be satisfied. --- 1998/schweikh2/schweikh2.c | 2 +- thanks-for-fixes.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/1998/schweikh2/schweikh2.c b/1998/schweikh2/schweikh2.c index 3c61deb1a..502f8cf65 100644 --- a/1998/schweikh2/schweikh2.c +++ b/1998/schweikh2/schweikh2.c @@ -9,7 +9,7 @@ static volatile sig_atomic_t One; in??/ t #line 10 ONE(O(1,1,2,6,0,6)) -main (register zero, char **ONE) +main (register int zero, char **ONE) %: <% switch (sizeof __FILE__ < zero) case 1: return One /= zero; { auto one = zero = atoi (ONE<:zero-1:>); diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 84a27673e..c7155c10d 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -2172,6 +2172,10 @@ interesting historical explanation and further details and fun, see the [historical remarks](1998/schweikh2/README.md#historical-remarks) in the README.md. +Cody also added an `int` after `register` in `main()` in case clang decides to +have a problem with that in the future which is not entirely out of the +question. + ## [1998/schweikh3](1998/schweikh3/schweikh3.c) ([README.md](1998/schweikh3/README.md]))