Skip to content

Commit 12ad3e6

Browse files
author
Henry Weller
committed
Temporary fixes to static initialisation for Gcc-15/Clang-20
1 parent 851f813 commit 12ad3e6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/OpenFOAM/global/constants/dimensionedConstants.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Foam::dimensionedScalar Foam::dimensionedConstant
122122

123123
if (!dict.found(group))
124124
{
125-
dict.add(group, dictionary::null);
125+
dict.add(group, dictionary());
126126
}
127127

128128
dict.subDict(group).add(entryName, dimensionedValue);
@@ -163,7 +163,7 @@ Foam::dimensionedScalar Foam::dimensionedConstant
163163

164164
if (!dict.found(group))
165165
{
166-
dict.add(group, dictionary::null);
166+
dict.add(group, dictionary());
167167
}
168168

169169
dict.subDict(group).add(entryName, dimensionedValue);

src/OpenFOAM/primitives/functions/Function1/Coded/CodedFunction1.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2020-2024 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2020-2025 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -38,7 +38,7 @@ const Foam::wordList Foam::Function1s::Coded<Type>::codeKeys
3838
template<class Type>
3939
const Foam::wordList Foam::Function1s::Coded<Type>::codeDictVars
4040
(
41-
{word::null, word::null}
41+
{word(), word()}
4242
);
4343

4444

src/OpenFOAM/primitives/functions/Function2/Coded/CodedFunction2.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2020-2024 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2020-2025 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -38,7 +38,7 @@ const Foam::wordList Foam::Function2s::Coded<Type>::codeKeys
3838
template<class Type>
3939
const Foam::wordList Foam::Function2s::Coded<Type>::codeDictVars
4040
(
41-
{word::null, word::null}
41+
{word(), word()}
4242
);
4343

4444

0 commit comments

Comments
 (0)