Skip to content

Conversation

@islas
Copy link
Collaborator

@islas islas commented May 29, 2025

TYPE: bug fix

KEYWORDS: gcc, gcc15, compilation

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
GCC 15 uses newer standards compliance, notably the disallowance of func() function declaration as a way to defer true arguments later specified in the function definition. Instead, functions declared as func() will be assumed to mean func(void) and any other amount of arguments must be explicitly noted in the declaration.

Solution:
Make sure function declarations and definitions match.

ISSUE: For use when this PR closes an issue.
Fixes #2226

TESTS CONDUCTED:

  1. Built and tested against GCC 15.1.0

RELEASE NOTE:
Fix compilation with GCC 15 by correcting function declaration syntax to explicitly list function arguments.

@islas islas requested a review from a team as a code owner May 29, 2025 20:19
@mgduda mgduda self-requested a review May 30, 2025 18:27
@islas islas added Retest and removed Retest labels May 30, 2025
@amstokely amstokely self-requested a review June 2, 2025 20:06
@islas islas merged commit 259d7e3 into wrf-model:release-v4.7.1 Jun 2, 2025
5 of 7 checks passed
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.

3 participants