mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
blender: fix build with gcc9
[ci skip]
This commit is contained in:
parent
9b11ddd792
commit
73c0feff4e
1 changed files with 31 additions and 0 deletions
31
srcpkgs/blender/patches/gcc9-elbeem.patch
Normal file
31
srcpkgs/blender/patches/gcc9-elbeem.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
https://bugs.gentoo.org/685922
|
||||||
|
|
||||||
|
--- a/intern/elbeem/intern/solver_main.cpp
|
||||||
|
+++ b/intern/elbeem/intern/solver_main.cpp
|
||||||
|
@@ -381,7 +381,7 @@ LbmFsgrSolver::mainLoop(const int lev)
|
||||||
|
GRID_REGION_INIT();
|
||||||
|
#if PARALLEL==1
|
||||||
|
const int gDebugLevel = ::gDebugLevel;
|
||||||
|
-#pragma omp parallel default(none) num_threads(mNumOMPThreads) \
|
||||||
|
+#pragma omp parallel default(none) firstprivate(gDebugLevel,iend,lev,cutConst) num_threads(mNumOMPThreads) \
|
||||||
|
reduction(+: \
|
||||||
|
calcCurrentMass,calcCurrentVolume, \
|
||||||
|
calcCellsFilled,calcCellsEmptied, \
|
||||||
|
@@ -1126,7 +1126,7 @@ LbmFsgrSolver::preinitGrids()
|
||||||
|
GRID_REGION_INIT();
|
||||||
|
#if PARALLEL==1
|
||||||
|
const int gDebugLevel = ::gDebugLevel;
|
||||||
|
-#pragma omp parallel default(none) num_threads(mNumOMPThreads) \
|
||||||
|
+#pragma omp parallel default(none) firstprivate(gDebugLevel,iend,lev) num_threads(mNumOMPThreads) \
|
||||||
|
reduction(+: \
|
||||||
|
calcCurrentMass,calcCurrentVolume, \
|
||||||
|
calcCellsFilled,calcCellsEmptied, \
|
||||||
|
@@ -1164,7 +1164,7 @@ LbmFsgrSolver::standingFluidPreinit()
|
||||||
|
GRID_REGION_INIT();
|
||||||
|
#if PARALLEL==1
|
||||||
|
const int gDebugLevel = ::gDebugLevel;
|
||||||
|
-#pragma omp parallel default(none) num_threads(mNumOMPThreads) \
|
||||||
|
+#pragma omp parallel default(none) firstprivate(gDebugLevel,iend,lev) num_threads(mNumOMPThreads) \
|
||||||
|
reduction(+: \
|
||||||
|
calcCurrentMass,calcCurrentVolume, \
|
||||||
|
calcCellsFilled,calcCellsEmptied, \
|
Loading…
Add table
Reference in a new issue