Skip to content

Fix duplicate extern declaration in cnee_demo.c and document Makefile.gdoc no-op intent#7

Merged
ayanimea merged 3 commits into
feature-alma8from
copilot/sub-pr-2
Mar 8, 2026
Merged

Fix duplicate extern declaration in cnee_demo.c and document Makefile.gdoc no-op intent#7
ayanimea merged 3 commits into
feature-alma8from
copilot/sub-pr-2

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 8, 2026

Two issues flagged in review: a duplicate extern declaration drifting out of sync with its canonical header, and a tracked build file with no explanation of its purpose.

Changes

  • cnee/src/cnee_demo.c — Removed local extern xnee_option_t *cnee_options; redeclaration; replaced with #include "cnee.h" which already declares it. Eliminates the risk of the two declarations diverging.

  • doc/Makefile.gdoc — Added comments clarifying the file is an intentional no-op placeholder. The file is also generated by cfg.mk's autoreconf target; keeping it tracked with context prevents future confusion.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: ayanimea <13433370+ayanimea@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Actions workflows for EL 6 and 8 Fix duplicate extern declaration in cnee_demo.c and document Makefile.gdoc no-op intent Mar 8, 2026
@ayanimea ayanimea requested a review from Copilot March 8, 2026 14:38
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

This PR addresses two minor code-quality issues: removing a duplicate extern declaration in cnee/src/cnee_demo.c and adding documentation comments to the no-op doc/Makefile.gdoc.

Changes:

  • Replaced a local extern xnee_option_t *cnee_options; redeclaration in cnee_demo.c with #include "cnee.h", which canonically declares the same symbol.
  • Added comments to doc/Makefile.gdoc explaining it is an intentional no-op placeholder.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cnee/src/cnee_demo.c Removed duplicate extern declaration; added #include "cnee.h" to import the canonical declaration from the header.
doc/Makefile.gdoc Added comments explaining the file's purpose as a no-op placeholder for gdoc build variables.

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

Comment thread doc/Makefile.gdoc Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ayanimea ayanimea marked this pull request as ready for review March 8, 2026 15:00
@ayanimea ayanimea merged commit d892f1e into feature-alma8 Mar 8, 2026
6 checks passed
@ayanimea ayanimea deleted the copilot/sub-pr-2 branch March 8, 2026 15:00
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