Add second arg to main() in 1985/august
Due to clang defect in number of args allowed in main(). Some versions will if you use, say, 4 args, object and report that main() can only have 0, 2 or 3 args. That same version does not appear to object to 1 arg (bug?) but it's entirely possible that this changes so I have changed the number of args of main() to 2 even though it's unused just out of abundance of caution. Updated CSILENCE for no implicit int. I have to test the unused parameter warning. That might need to be added to, -Wno-unused-parameter, but I have to find out which compilers will or will not object to it and that can come later on.
This commit is contained in:
1 parent
d6bc864d48
commit
dadcaf92c4
3 files changed
+15
-7
No files matched your search
@@ -39,7 +39,8 @@ include ../../var.mk
|
||||
# Common C compiler warnings to silence
|
||||
#
|
||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-main \
|
||||
-Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-non-prototype
|
||||
-Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-non-prototype \
|
||||
-Wno-implicit-int
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user