Skip to content

Add missing include for PR: Add index scan (#2351)#2379

Merged
muhammadshoaib merged 1 commit intoapache:masterfrom
jrgemignani:fix_missing_include_for_PR2351
Apr 14, 2026
Merged

Add missing include for PR: Add index scan (#2351)#2379
muhammadshoaib merged 1 commit intoapache:masterfrom
jrgemignani:fix_missing_include_for_PR2351

Conversation

@jrgemignani
Copy link
Copy Markdown
Contributor

The CI build did not fail the PR (we need to verify why and correct it) due to the missing include -

src/backend/utils/adt/age_global_graph.c:273:25: error: implicit declaration of function ‘namestrcpy’; did you mean ‘strcpy’? [-Wimplicit-function-declaration]
273 | namestrcpy(lval, NameStr(*label_name_ptr));
| ^~~~~~~~~~
| strcpy

The build still works as the linker was able to resolve it. This PR will add it in to correct the error going forward.

The CI build did not fail the PR (we need to verify why and correct
it) due to the missing include -

src/backend/utils/adt/age_global_graph.c:273:25: error: implicit declaration of
function ‘namestrcpy’; did you mean ‘strcpy’? [-Wimplicit-function-declaration]
  273 |                         namestrcpy(lval, NameStr(*label_name_ptr));
      |                         ^~~~~~~~~~
      |                         strcpy

The build still works as the linker was able to resolve it. This PR
will add it in to correct the error going forward.
@jrgemignani jrgemignani requested a review from Copilot April 14, 2026 18:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds the missing header include needed to declare namestrcpy, preventing implicit-function-declaration compiler errors in age_global_graph.c.

Changes:

  • Include utils/builtins.h in src/backend/utils/adt/age_global_graph.c to provide the declaration for namestrcpy.

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

Copy link
Copy Markdown
Contributor

@muhammadshoaib muhammadshoaib left a comment

Choose a reason for hiding this comment

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

Approved.

@muhammadshoaib muhammadshoaib merged commit 945a259 into apache:master Apr 14, 2026
8 checks passed
@jrgemignani
Copy link
Copy Markdown
Contributor Author

@muhammadshoaib ty!

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.

3 participants