Skip to content

Commit

Permalink
Merge pull request #35144 from smuzaffar/gcc11-warn-CommonTools
Browse files Browse the repository at this point in the history
[GCC11] Fix compilation warning for CommonTools
  • Loading branch information
cmsbuild committed Sep 3, 2021
2 parents d6d2ace + 72eb238 commit 5270dfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CommonTools/Utils/test/testDynArray.cpp
Expand Up @@ -16,7 +16,9 @@ struct A {
int main(int s, char **) {
using T = A;

unsigned n = 4 * s;
unsigned n = 4;
if (s > 1)
n = 4 * s;

// alignas(alignof(T)) unsigned char a_storage[sizeof(T)*n];
// DynArray<T> a(a_storage,n);
Expand Down

0 comments on commit 5270dfc

Please sign in to comment.