Skip to content

Fix main() declarations in build script for gcc compatibility#48

Open
hying-caritas wants to merge 1 commit intointel:masterfrom
hying-caritas:fix_gcc14_build
Open

Fix main() declarations in build script for gcc compatibility#48
hying-caritas wants to merge 1 commit intointel:masterfrom
hying-caritas:fix_gcc14_build

Conversation

@hying-caritas
Copy link
Contributor

Changes:

  • Add explicit 'int' return type to main() in most test code
  • Add #define _GNU_SOURCE for sched_setaffinity detection
  • Change sched_setaffinity parameter from 'unsigned long' to 'cpu_set_t'

Changes:
- Add #define _GNU_SOURCE for sched_setaffinity detection
- Change sched_setaffinity parameter from 'unsigned long' to 'cpu_set_t'
- Add explicit 'int' return type to main() in most test code
- Keep 'void main()' for get_myaddress test (works fine with gcc)
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.

1 participant