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

GCC 14 compiler error, int-conversion #23

Closed
xiota opened this issue Jul 27, 2024 · 4 comments
Closed

GCC 14 compiler error, int-conversion #23

xiota opened this issue Jul 27, 2024 · 4 comments

Comments

@xiota
Copy link
Contributor

xiota commented Jul 27, 2024

GCC 14.1.1. Some warnings now considered errors.

/home/builder/build/src/xmap/src/state.c:39:36: error: initialization of ‘unsigned char’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
   39 |     .source_ip_addresses         = NULL,
@idealeer
Copy link
Owner

Please add "-Wint-conversion" to Line 38 of file CMakeLists.txt and try again.

@xiota
Copy link
Contributor Author

xiota commented Jul 27, 2024

@idealeer Are you recommending as workaround or test of potential solution? Unless this project is discontinued, best solution would be to adjust source (change NULL to 0) because future compiler releases will be more strict.

@idealeer
Copy link
Owner

idealeer commented Aug 9, 2024

thx, will do the improvement

idealeer added a commit that referenced this issue Aug 16, 2024
XMap 2.0.1 Minor Release.
Fix Bugs #23 and #24

Co-Authored-By: xiota <8353098+xiota@users.noreply.github.com>
@idealeer
Copy link
Owner

done

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