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

Unbreak build on FreeBSD #37

Merged
merged 3 commits into from
Jan 9, 2023
Merged

Unbreak build on FreeBSD #37

merged 3 commits into from
Jan 9, 2023

Conversation

jbeich
Copy link

@jbeich jbeich commented Jan 9, 2023

Fixes #36

cagebreak.c:197:11: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration]
                        line = reallocarray(line, line_length, sizeof(char));
                               ^
cagebreak.c:197:9: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                        line = reallocarray(line, line_length, sizeof(char));
                             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipc_server.c:248:25: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration]
                client->read_buffer = reallocarray(client->read_buffer,
                                      ^
ipc_server.c:248:23: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                client->read_buffer = reallocarray(client->read_buffer,
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To help find bugs caused by _POSIX_C_SOURCE. Already errors in C++ and C23.
In file included from output.c:30:
keybinding.h:136:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
keybinding_list_init();
                    ^
                     void
output.c:335:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
empty_output_config() {
                   ^
                    void
In file included from seat.c:29:
input_manager.h:19:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
input_manager_create_empty_input_config();
                                       ^
                                        void
input_manager.c:92:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
input_manager_create_empty_input_config() {
                                       ^
                                        void
keybinding.c:129:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
keybinding_list_init() {
                    ^
                     void

See also
llvm/llvm-project@11da1b53d8c
https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521
@project-repo project-repo changed the base branch from master to development January 9, 2023 10:10
@project-repo
Copy link
Owner

Hi Jan Beich,

thank you for pointing this out to us. We merged this to development and will be
publishing a bug-fix release shortly.

cheers
project-repo

@project-repo project-repo merged commit 9ad7c92 into project-repo:development Jan 9, 2023
project-repo pushed a commit that referenced this pull request Jan 9, 2023
Changelog:
  * Fix Issue 54 (#37 on github)
    * Cagebreak did not compile on BSD systems and falsely claimed
      to be POSIX compliant.
project-repo pushed a commit that referenced this pull request Feb 2, 2023
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

Successfully merging this pull request may close these issues.

2.0.0 fails to build on FreeBSD with Clang >= 15
2 participants