Преглед на файлове

Fix GCC (8.2.1) build error.

Not sure that I think this is a very valid build error from GCC, but
it's easy enough to work around.

../crypto/cpu-arm-linux_test.cc: In member function ‘virtual void ARMLinuxTest_CPUInfo_Test::TestBody()’:
../crypto/cpu-arm-linux_test.cc:25:10: error: declaration of ‘struct ARMLinuxTest_CPUInfo_Test::TestBody()::Test’ shadows a previous local [-Werror=shadow]
   struct Test {
          ^~~~
In file included from ../crypto/cpu-arm-linux_test.cc:19:
../third_party/googletest/include/gtest/gtest.h:375:23: note: shadowed declaration is here
 class GTEST_API_ Test {

Change-Id: Icc1676a621ec26b3665adaf5daf7d6c6f5307ba8
Reviewed-on: https://boringssl-review.googlesource.com/31624
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
Adam Langley преди 6 години
committed by Adam Langley
родител
ревизия
3faf3db6d8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      crypto/cpu-arm-linux_test.cc

+ 1
- 1
crypto/cpu-arm-linux_test.cc Целия файл

@@ -22,7 +22,7 @@
#if !defined(BORINGSSL_SHARED_LIBRARY)

TEST(ARMLinuxTest, CPUInfo) {
struct Test {
struct CPUInfoTest {
const char *cpuinfo;
unsigned long hwcap;
unsigned long hwcap2;


Зареждане…
Отказ
Запис