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

Another macOS error #255

Open
polluks2 opened this issue Jan 26, 2023 · 1 comment
Open

Another macOS error #255

polluks2 opened this issue Jan 26, 2023 · 1 comment

Comments

@polluks2
Copy link

alloc.c:101:15: error: cast from 'char *' to 'struct smb2_alloc_header *' increases required alignment from 1 to 8 [-Werror,-Wcast-align]
        hdr = container_of(memctx, struct smb2_alloc_header, buf);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alloc.c:58:9: note: expanded from macro 'container_of'
        (type *)( (char *)__mptr - offsetof(type,member) );})
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alloc.c:126:15: error: cast from 'char *' to 'struct smb2_alloc_header *' increases required alignment from 1 to 8 [-Werror,-Wcast-align]
        hdr = container_of(ptr, struct smb2_alloc_header, buf);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alloc.c:58:9: note: expanded from macro 'container_of'
        (type *)( (char *)__mptr - offsetof(type,member) );})
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
@pingpongterminator300
Copy link

Im experiencing the same issue on my armv7l linux, on arm64 it works fine

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