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

HP compiler warns about redeclaration of static function #640

Closed
smuehlst opened this issue Oct 19, 2015 · 1 comment
Closed

HP compiler warns about redeclaration of static function #640

smuehlst opened this issue Oct 19, 2015 · 1 comment
Labels
Milestone

Comments

@smuehlst
Copy link
Contributor

The HP-UX compiler issues the following warning when compiling source file src/lib/openjp2/dwt.c:

cc: "dwt.c", line 798: warning 562: Redeclaration of "opj_v4dwt_decode" with a different storage class specifier: "opj_v4dwt_decode" will have internal linkage.

The forward declaration looks like this:

static void opj_v4dwt_decode(opj_v4dwt_t* restrict dwt);

While the actual function signature looks like this:

void opj_v4dwt_decode(opj_v4dwt_t* restrict dwt)

The actual function should also be declated as static.

@smuehlst
Copy link
Contributor Author

Same problem in source file src/lib/openjp2/t2.c:

cc: "t2.c", line 1341: warning 562: Redeclaration of "opj_t2_init_seg" with a different storage class specifier: "opj_t2_init_seg" will have internal linkage.

smuehlst pushed a commit to smuehlst/openjpeg that referenced this issue Oct 19, 2015
HP compiler warns:
cc: "dwt.c", line 798: warning 562: Redeclaration of "opj_v4dwt_decode"
with a different storage class specifier: "opj_v4dwt_decode" will have
internal linkage.
cc: "t2.c", line 1341: warning 562: Redeclaration of "opj_t2_init_seg"
with a different storage class specifier: "opj_t2_init_seg" will have
internal linkage.
@mayeut mayeut added the bug label Oct 19, 2015
@mayeut mayeut added this to the OPJ v2.1.1 milestone Oct 19, 2015
@mayeut mayeut closed this as completed in 5799672 Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants