mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
dynamicCode: Clang requires line numbers to start from 1 rather than 0
This commit is contained in:
@ -135,7 +135,7 @@ void Foam::dynamicCodeContext::addLineDirective
|
|||||||
const fileName& name
|
const fileName& name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
code = "#line " + Foam::name(lineNum) + " \"" + name + "\"\n" + code;
|
code = "#line " + Foam::name(lineNum + 1) + " \"" + name + "\"\n" + code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user