Format/typo check 1994/weisberg + update Makefile

Added -Wno-implicit-int to Makefile.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-10 10:52:01 -08:00
1 parent d2de7f49f2
commit f36f2c3d39
2 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-pointer-to-int-cast \
-Wno-shift-op-parentheses
-Wno-shift-op-parentheses -Wno-implicit-int
# Common C compiler warning flags
#
+6 -3
View File
@@ -31,11 +31,12 @@ a core file. :-)
This entry confuses some C-preprocessors and some C-beautifiers.
We found one cpp that processed this source differently when
it was read on stdin instead of via `cc -E`.
it was read on `stdin` instead of via `cc -E`.
## Author's remarks:
### Description
The following short program implements the "Yet Another" algorithm for
@@ -46,16 +47,18 @@ run to completion, so as an added feature, it will cease execution upon
reception of a signal (any will do equally well), as well as in the
event of a system shutdown or reboot.
### Bugs
The alternative version ([weisberg.alt](weisberg.alt.c)) has never actually run
The alternative version ([weisberg.alt.c](weisberg.alt.c)) has never actually run
to completion. After running for close to a week it had reached somewhere around
250e6, when it became necessary to test the reboot feature (which worked
remarkably well). As there are quite a lot of primes to be found before reaching
`INT_MAX`, the output produced can be quite overwhelming, it recommended to pipe
`INT_MAX`, the output produced can be quite overwhelming so it's recommended to pipe
the output through your favorite pager (`more` or `less`), and not output to a
paper output device (unless you have *LOTS* of paper).
### Technical
The original "Yet Another Prime Program" algorithm used here was developed as a