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

incompatible pointer type issue #6

Open
chenrui333 opened this issue Mar 28, 2024 · 0 comments
Open

incompatible pointer type issue #6

chenrui333 opened this issue Mar 28, 2024 · 0 comments

Comments

@chenrui333
Copy link

👋 while rebuilding Movgrab 3.1.2, we found there is some incompatible pointer type build failure:

  Terminal.c:307:16: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const void *' [-Wint-conversion]
          else write(1, Char, 1);
                        ^~~~
  /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/unistd.h:496:39: note: passing argument to parameter '__buf' here
  ssize_t  write(int __fd, const void * __buf, size_t __nbyte) __DARWIN_ALIAS_C(write);
                                        ^
  1 error generated.

relates to Homebrew/homebrew-core#167367

chenrui333 added a commit to Homebrew/formula-patches that referenced this issue Mar 29, 2024
```
Terminal.c:307:16: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const void *' [-Wint-conversion]
        else write(1, Char, 1);
                      ^~~~
```

```
ConnectionChain.c:366:6: error: incompatible integer to pointer conversion assigning to 'STREAM *' from 'int' [-Wint-conversion]
        tmpS=SSHConnect(Host, Port, User, Pass, Tempstr);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

```
main.c:39:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main(int argc, char *argv[])
^
int
1 error generated.
```

relates to
- ColumPaget/Movgrab#6
- Homebrew/homebrew-core#167367

Signed-off-by: Rui Chen <[email protected]>
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

1 participant