Skip to content
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

cplus-dem.c:3649:2: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] #43

Open
XVilka opened this issue Jun 20, 2023 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@XVilka
Copy link
Member

XVilka commented Jun 20, 2023

When building Cutter:

../../../../../../rizin/cutter/rizin/subprojects/libdemangle/src/gnu_v2/cplus-dem.c:3649:2: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
../../../../../../rizin/cutter/rizin/subprojects/libdemangle/src/gnu_v2/cplus-dem.c:3659:2: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        string_prependn(p, s, n)
        ^
../../../../../../rizin/cutter/rizin/subprojects/libdemangle/src/gnu_v2/cplus-dem.c:3659:2: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
@wargio
Copy link
Member

wargio commented Jun 20, 2023

this is because the code is written in K&R style

@XVilka XVilka added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants