Skip to content

Commit b18f72e

Browse files
committed
Fixed variable shadowing with gcc>=9
1 parent 5a6874b commit b18f72e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

unitTests/python/testPyArrayOfArrays.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
#include "python/python.hpp"
2424
#include "MallocBuffer.hpp"
2525

26+
namespace
27+
{
28+
2629
static LvArray::ArrayOfArrays< long, std::ptrdiff_t, LvArray::MallocBuffer > arrayOfArrays{ 5, 6 };
2730

31+
} // namespace
32+
2833
static PyObject * getArrayOfArrays( PyObject * const self, PyObject * const args )
2934
{
3035
LVARRAY_UNUSED_VARIABLE( self );

unitTests/python/testPyArrayOfSets.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
#include "python/python.hpp"
2424
#include "MallocBuffer.hpp"
2525

26+
namespace
27+
{
28+
2629
static LvArray::ArrayOfSets< long long, std::ptrdiff_t, LvArray::MallocBuffer > arrayOfSets{ 5, 6 };
2730

31+
} // namespace
32+
2833
static PyObject * getArrayOfSets( PyObject * const self, PyObject * const args )
2934
{
3035
LVARRAY_UNUSED_VARIABLE( self );

0 commit comments

Comments
 (0)