-
Notifications
You must be signed in to change notification settings - Fork 291
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
Use <stdlib.h> for alloca on FreeBSD. #723
Conversation
d1aebb0
to
9e2d1c2
Compare
Reviewed 9 of 9 files at r1. Comments from Reviewable |
Reviewed 7 of 9 files at r1. other/travis/toxcore-script, line 13 at r1 (raw file):
why is this removed? not needed anymore? toxcore/Messenger.c, line 2261 at r1 (raw file):
What happens in the case of Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. toxcore/Messenger.c, line 2261 at r1 (raw file): Previously, sudden6 wrote…
This is not to pass tests. The condition below is always false if the cpp condition is false. filenumber is a uint8_t, so can never be larger than 255. This causes compiler warnings and I'd like to avoid those. This has nothing to do with tests. If Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. other/travis/toxcore-script, line 13 at r1 (raw file): Previously, sudden6 wrote…
It has never caught any bugs, and seriously slows down windows and freebsd builds. Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions. toxcore/Messenger.c, line 2261 at r1 (raw file): Previously, iphydf wrote…
Ok, can we enforce Comments from Reviewable |
Reviewed 1 of 9 files at r1. Comments from Reviewable |
https://www.freebsd.org/cgi/man.cgi?alloca If stdlib.h does not define alloca, and we're using GCC (or Clang), we define the macro ourselves in terms of a GCC builtin.
Review status: all files reviewed at latest revision, 1 unresolved discussion. toxcore/Messenger.c, line 2261 at r1 (raw file): Previously, sudden6 wrote…
Done. Comments from Reviewable |
9e2d1c2
to
8f1bbcf
Compare
Reviewed 2 of 2 files at r2. Comments from Reviewable |
https://www.freebsd.org/cgi/man.cgi?alloca
Some additional fixed had to be done as the Windows build started failing once I fixed the freebsd build.
This change is