Skip to content

Fix CI warnings: suppress lusol.h alloc-size warning, use error_on=warning#46

Merged
vissarion merged 1 commit into
GeomScale:developfrom
vissarion:fix_ci_warn
Jun 29, 2026
Merged

Fix CI warnings: suppress lusol.h alloc-size warning, use error_on=warning#46
vissarion merged 1 commit into
GeomScale:developfrom
vissarion:fix_ci_warn

Conversation

@vissarion

Copy link
Copy Markdown
Member
  • Add GCC diagnostic pragmas to suppress -Walloc-size-larger-than= in vendored lp_solve's lusol.h, which triggers on Windows 64-bit.
  • Change rcmdcheck error_on from 'error' to 'warning' in all three CI workflows to match CRAN check standards.

…rning

- Add -Wno-alloc-size-larger-than to lp_solve CFLAGS in Makevars.win
  to suppress spurious GCC warning on Windows 64-bit from vendored
  lp_solve's LUSOL_REALLOC macro expansions.
- Change rcmdcheck error_on from 'error' to 'warning' in all three
  CI workflows to match CRAN check standards.

Note: the GCC pragma approach in lusol.h was reverted because the
warning fires at macro expansion call sites (lusol.c, lusol1.c, etc.),
not at the macro definition, making pragmas in the header ineffective.

Co-Authored-By: Claude <noreply@anthropic.com>
@vissarion vissarion merged commit 4cca425 into GeomScale:develop Jun 29, 2026
4 checks passed
@vissarion vissarion deleted the fix_ci_warn branch June 29, 2026 12:54
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.

1 participant