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

Compilation error (macOS): unused parameter #17

Open
harkabeeparolus opened this issue Jul 9, 2020 · 1 comment
Open

Compilation error (macOS): unused parameter #17

harkabeeparolus opened this issue Jul 9, 2020 · 1 comment

Comments

@harkabeeparolus
Copy link

Compilation error on macOS Catalina 10.15.5:

utils.c:372:62: error: unused parameter 'completions' [-Werror,-Wunused-parameter]
getstring_with_completion(char *prompt, const char * const * completions)
                                                             ^
1 error generated.

The error seems happen since the usage of the parameter completions is hidden by an ifdef:

#ifdef HAS_READLINE
        completion_values = completions;
[...]
  • Apple clang version 11.0.0 (clang-1100.0.33.17)
  • Target: x86_64-apple-darwin19.5.0
@heirecka
Copy link

Duplicate of #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants