From 6b3657437d7592d8479d29c66778acb0aeb18e49 Mon Sep 17 00:00:00 2001 From: Liam Staskawicz Date: Wed, 29 Jul 2015 22:48:23 -0700 Subject: [PATCH] capn-test: remove unreferenced code, now builds cleanly previously, this was emitting the following warning (treated as error): `c++ -g -Wall -Werror -I. -Igtest-1.7.0/include -o capn-test.o -c capn-test.cpp capn-test.cpp:66:29: error: unused variable 'SUBSTRUCT_DEFAULT' [-Werror,-Wunused-const-variable] static const AlignedData<2> SUBSTRUCT_DEFAULT = {{0,0,0,0,1,0,0,0, 0,0,0,0,0,0,0,0}}; ^ capn-test.cpp:67:29: error: unused variable 'STRUCTLIST_ELEMENT_SUBSTRUCT_DEFAULT' [-Werror,-Wunused-const-variable] static const AlignedData<2> STRUCTLIST_ELEMENT_SUBSTRUCT_DEFAULT = ^` --- capn-test.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/capn-test.cpp b/capn-test.cpp index b004c0f..84e3e4b 100644 --- a/capn-test.cpp +++ b/capn-test.cpp @@ -63,10 +63,6 @@ TEST(WireFormat, SimpleRawDataStruct) { EXPECT_EQ(UINT16_C(0), capn_read16(ptr, 8)); } -static const AlignedData<2> SUBSTRUCT_DEFAULT = {{0,0,0,0,1,0,0,0, 0,0,0,0,0,0,0,0}}; -static const AlignedData<2> STRUCTLIST_ELEMENT_SUBSTRUCT_DEFAULT = - {{0,0,0,0,1,0,0,0, 0,0,0,0,0,0,0,0}}; - static void setupStruct(struct capn *ctx) { struct capn_ptr root = capn_root(ctx); ASSERT_EQ(CAPN_PTR_LIST, root.type);