rizinorg / rz-libdemangle

Rizin Library to demangle symbols
7 stars 6 forks source link

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 1 year ago

XVilka commented 1 year ago

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 commented 1 year ago

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