Skip to content

Resolve compilation error involving static const local variables#393

Open
ceblanton wants to merge 1 commit intomainfrom
380.fix-mosaic-util-compilation-2
Open

Resolve compilation error involving static const local variables#393
ceblanton wants to merge 1 commit intomainfrom
380.fix-mosaic-util-compilation-2

Conversation

@ceblanton
Copy link
Copy Markdown
Contributor

@ceblanton ceblanton commented Apr 9, 2026

The fix correctly resolves the compilation error where static const local variables were being initialized with other static const variables (is2), which is not a valid constant expression in C.

Description
Fixes #380

How Has This Been Tested?
Passes tests on GFDL workstation and gaea (except the mpi tests that are expected to fail on the latter)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

The fix correctly resolves the compilation error where static const local variables were being initialized with other static const variables (is2), which is not a valid constant expression in C.
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.

static const double variables in lib/libfrencutils/mosaic_util.c

2 participants