Skip to content

asl: include string.h for memcpy#3

Open
JNewtons wants to merge 1 commit into
align-racing-uia:AR25from
JNewtons:fix/memcpy-include
Open

asl: include string.h for memcpy#3
JNewtons wants to merge 1 commit into
align-racing-uia:AR25from
JNewtons:fix/memcpy-include

Conversation

@JNewtons

Copy link
Copy Markdown

GCC 14 no longer allows implicit function declarations, and aligncan.c calls memcpy without a prototype.

This adds the missing <string.h> include so the AR25 build succeeds with stricter toolchains.
No functional behavior change intended.

Copilot AI review requested due to automatic review settings February 25, 2026 05:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes build failures with stricter toolchains (e.g., GCC 14) by ensuring memcpy has a proper prototype in aligncan.c, matching the PR’s intent of no functional behavior change.

Changes:

  • Add the missing <string.h> include to provide the memcpy declaration used in ALIGN_CAN_USE_BUFFER code paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants