-
-
Notifications
You must be signed in to change notification settings - Fork 487
Xmlto: FIx implicit int #8447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Xmlto: FIx implicit int #8447
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,8 @@ package("xmlto") | |
|
|
||
| on_install("macosx", "linux", function (package) | ||
| import("package.tools.autoconf") | ||
| io.replace("xmlif/xmlif.l",[[static ifsense;]],[[static int ifsense;]],{plain = true}) | ||
| io.replace("xmlif/xmlif.l",[[main(int argc, char *argv[])]],[[int main(int argc, char *argv[])]],{plain = true}) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original code Suggestion: Always specify the return type of the |
||
| local envs = autoconf.buildenvs(package) | ||
| local getopt = package:dep("util-linux"):fetch() | ||
| for _, dir in ipairs(getopt.linkdirs) do | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original code
static ifsense;uses an implicitintdeclaration, which is not allowed by newer compilers. Explicitly declaring the variable asstatic int ifsense;resolves this issue.Suggestion: Use explicit type declaration for variables.