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

compile with clang version 16.0.5 #1676

Closed
NissimBendanan opened this issue Aug 9, 2023 · 0 comments · Fixed by NissimBendanan/nng#1 or #1678
Closed

compile with clang version 16.0.5 #1676

NissimBendanan opened this issue Aug 9, 2023 · 0 comments · Fixed by NissimBendanan/nng#1 or #1678

Comments

@NissimBendanan
Copy link
Contributor

NissimBendanan commented Aug 9, 2023

Describe the bug
nanomsg does not compile using clang version 16.0.5

Expected behavior
should compile

Actual Behavior
Got this error message:
`
C:\PROGRA1\MICROS4\2022\PROFES~1\VC\Tools\Llvm\x64\bin\clang.exe -c nng/src/platform/windows/win_tcpconn.c

win_tcpconn.c(450,17): error GC4FBD38D: incompatible function pointer types assigning to 'void (*)(void *, nng_aio )' (aka 'void ()(void *, struct nng_aio *)') from 'void (nni_tcp_conn *, nni_aio *)' (aka 'void (struct nni_tcp_conn *, struct nng_aio *)') [-Wincompatible-function-pointer-types]

      c->ops.s_recv  = tcp_recv;

`

To Reproduce
Just install last clang version 16.0.5 and compile with it

** Environment Details **

  • NNG version: v1.5.2
  • Operating system and version: Windows 10 Enterprise / Version 21H2
  • Compiler and language used: clang version 16.0.5
  • Visual studio used: Version 17.7.0
NissimBendanan added a commit to NissimBendanan/nng that referenced this issue Aug 10, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg#1676
gdamore pushed a commit that referenced this issue Sep 14, 2023
fix compile error in nano using clang version 16.0.5

fix issue: #1676
JaylinYu pushed a commit to nanomq/NanoNNG that referenced this issue Sep 14, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
JaylinYu pushed a commit to nanomq/NanoNNG that referenced this issue Sep 17, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
JaylinYu pushed a commit to emqx/NanoSDK that referenced this issue Oct 10, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
JaylinYu pushed a commit to emqx/NanoSDK that referenced this issue Oct 10, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
JaylinYu pushed a commit to emqx/NanoSDK that referenced this issue Oct 16, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
JaylinYu pushed a commit to emqx/NanoSDK that referenced this issue Oct 16, 2023
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
eeff pushed a commit to neugates/NanoSDK that referenced this issue Feb 29, 2024
fix compile error in nano using clang version 16.0.5

fix issue: nanomsg/nng#1676
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 a pull request may close this issue.

1 participant