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

Fix compilation errors caused by function declarations without parameters #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 10, 2024

  1. Fix compilation errors caused by function declarations without parame…

    …ters
    
    This commit addresses the following compilation errors:
    - Warnings were raised due to function declarations without parameters, which are deprecated in all versions of C.
    - Functions such as `cjose_get_alloc()`, `cjose_get_alloc3()`, `cjose_get_realloc()`, `cjose_get_realloc3()`, `cjose_get_dealloc()`, and `cjose_get_dealloc3()` were declared without a `void` parameter.
    - Modified these declarations and definitions by adding `void` to indicate no parameters, as required by modern C standards.
    
    This change resolves the compilation errors when building with strict prototype checking (-Wstrict-prototypes).
    wangqiang committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    7f97548 View commit details
    Browse the repository at this point in the history