Skip to content

Fix gcc old-style function definition warnings in wcs/ subfolder - #41

Merged
ebertin merged 3 commits into
fix_old_stylefrom
copilot/fix-old-style-function-definition-warnings
Apr 12, 2026
Merged

ebertin merged 3 commits into
fix_old_stylefrom
copilot/fix-old-style-function-definition-warnings

Conversation

Copilot AI commented Apr 12, 2026 •

Copy link
Copy Markdown
Contributor
  • Identify all remaining warnings in src/wcs/
  • Fix -Warray-parameter= in cel.c (3 functions: const char pcode[4] → const char *pcode)
  • Fix -Warray-parameter= in sph.c (2 functions: const double eul[5] → const double eul[])
  • Fix -Warray-parameter= in wcs.c (1 function: const double vspan[2] → const double vspan[])
  • Fix -Wunused-but-set-variable in poly.c (removed 6 unused variable assignments in poly_initortho)
  • Verify zero warnings remain (-Wall -Wextra -Wold-style-definition on all 8 files)
  • Code review and CodeQL scan passed

@ebertin
ebertin changed the base branch from master to fix_old_style April 12, 2026 16:45
@ebertin
ebertin marked this pull request as ready for review April 12, 2026 16:48
@ebertin

ebertin commented Apr 12, 2026

Copy link
Copy Markdown
Member

Looking good.

@ebertin
ebertin merged commit bf5a6ed into fix_old_style Apr 12, 2026
2 checks passed
@ebertin
ebertin deleted the copilot/fix-old-style-function-definition-warnings branch April 12, 2026 16:52
ebertin added a commit that referenced this pull request Apr 12, 2026
#42)

* Initial plan for fixing old-style function definitions

Agent-Logs-Url: https://github.com/astromatic/scamp/sessions/9143e925-0cb8-4ca5-bd32-b35bddf919a0



* Fix old-style function definition warnings in src/wcs/

Agent-Logs-Url: https://github.com/astromatic/scamp/sessions/9143e925-0cb8-4ca5-bd32-b35bddf919a0



* Fix all remaining warnings in src/wcs/ (array-parameter and unused-variable)

Agent-Logs-Url: https://github.com/astromatic/scamp/sessions/be7d1e7f-02a3-4cd2-8bd1-b81fc8f002ea



---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ebertin <4749246+ebertin@users.noreply.github.com>
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