Skip to content

MNT: Exorcise compilation warnings in calstis - #735

Merged
pllim merged 17 commits into
spacetelescope:mainfrom
pllim:stis-warns-begone
Dec 4, 2026
Merged

pllim merged 17 commits into
spacetelescope:mainfrom
pllim:stis-warns-begone

Conversation

@pllim

@pllim pllim commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

@pllim pllim added the STIS label Sep 14, 2026
@pllim pllim changed the title Stis warns begone MNT: Exorcise compilation warnings in calstis Sep 15, 2026
@stscirij

This comment was marked as resolved.

@pllim

This comment was marked as resolved.

Comment thread pkg/stis/lib/cs6/defineback.c Resolved
Comment thread pkg/stis/lib/mkoutname.c Resolved
@pllim
pllim marked this pull request as ready for review September 29, 2026 20:08
@pllim
pllim requested a review from a team as a code owner September 29, 2026 20:08
@pllim
pllim requested a review from stscirij September 29, 2026 20:09
@pllim
pllim force-pushed the stis-warns-begone branch from 56039d5 to 70da2a6 Compare November 10, 2026 23:12
Comment thread pkg/stis/lib/cs1/getepctab1.c Resolved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Here, I just commented out the calls to functions that are already no-op.

@pllim pllim Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

debug control is a nice idea but it was never really used and generated compiler warnings, so I removed it.

buffere[jpix][i] += Pix(in->err.data, l, j) *
Pix(in->err.data, l, j) *
kernel[k];
if (l >=0 && l < npix && !(DQPix (in->dq.data, l, j) & sts->sdqflags)) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Interestingly, fixing this did not fail RT. 🤔

Comment thread pkg/stis/lib/cs8/calstis8.c Resolved
Comment thread pkg/stis/include/stis.h Resolved
@pllim

pllim commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Is there anything else I need to do to push this forward?

Comment thread pkg/stis/lib/cs11/subsci.c Resolved
@pllim

pllim commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

RT with Robert's fix passed. Thanks, @stscirij !

@stscirij stscirij left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, passes all the reg tests

@pllim
pllim merged commit 5410c84 into spacetelescope:main Dec 4, 2026
10 checks passed
@pllim
pllim deleted the stis-warns-begone branch December 4, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address the many compilation warnings

3 participants