-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix implicit `int` on `main` and `static` declarations. Clang 16 reports these as errors.
- Loading branch information
1 parent
7cb8db1
commit 1a39d22
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff -ur a/xmlif/xmlif.l b/xmlif/xmlif.l | ||
--- a/xmlif/xmlif.l 2015-02-11 07:20:51.000000000 -0500 | ||
+++ b/xmlif/xmlif.l 2023-06-03 11:35:11.394139373 -0400 | ||
@@ -43,7 +43,7 @@ | ||
|
||
static char **selections; /* selection tokens */ | ||
static int nselections; /* number of selections */ | ||
-static ifsense; /* sense of last `if' or unless seen */ | ||
+static int ifsense; /* sense of last `if' or unless seen */ | ||
static char *attribute; /* last attribute scanned */ | ||
|
||
struct stack_t { | ||
@@ -239,7 +239,7 @@ | ||
|
||
int yywrap() {exit(0);}; | ||
|
||
-main(int argc, char *argv[]) | ||
+int main(int argc, char *argv[]) | ||
{ | ||
int i; | ||
|