fix(3rd-party): fix mgen, ahp-xc and pentax errors on fedora. #965
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(indi-mgen): work around C++14 out-of-bounds warnings.
This is a tentative PR to fix out-of-bounds warnings emitted by C++14 when building indi-mgen.
The implementation restricts the set of function candidates the compiler selects from when using an initialiser list on IOBuffer:
IOBuffer{opcode,literal,literal...}
, and makes sure to allocate space before copying the list data.fix(indi-ahp-xc): silence warnings by allocating placeholders with their real size.
@iliaplatone I considered that placeholders with their real sizes instead of 1 byte everywhere wasn't that problematic. Feel free to comment.
fix(indi-pentax): fix calloc argument order.
calloc(sizeof,sizeof)
expects the number of items as first argument, and the size of each as second.