Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 4ed304d

Browse files
Fix build failures
1 parent daa5970 commit 4ed304d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/catalog/schema.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Schema *Schema::AppendSchema(const Schema *first, std::vector<oid_t> &first_set,
218218
}
219219

220220
// Append given schemas.
221-
Schema *Schema::AppendSchemaList(std::vector<const Schema> &schema_list) {
221+
Schema *Schema::AppendSchemaList(std::vector<Schema> &schema_list) {
222222
// All we do here is convert vector<Schema> to vector<Schema *>.
223223
// This is a convenience function.
224224
std::vector<const Schema *> schema_ptr_list;

src/include/catalog/schema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Schema : public Printable {
6969
const Schema *second, std::vector<oid_t> &second_set);
7070

7171
// Append given schemas.
72-
static Schema *AppendSchemaList(std::vector<const Schema> &schema_list);
72+
static Schema *AppendSchemaList(std::vector<Schema> &schema_list);
7373

7474
// Append given schemas.
7575
static Schema *AppendSchemaPtrList(const std::vector<const Schema *> &schema_list);

src/storage/data_table.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,8 @@ void SetTransformedTileGroup(storage::TileGroup *orig_tile_group,
12421242
// Check that both tile groups have the same schema
12431243
// Currently done by checking that the number of columns are equal
12441244
// TODO Pooja: Handle schena equality for multiple schema versions.
1245-
auto new_column_count = new_layout.GetColumnCount();
1246-
auto orig_column_count = orig_layout.GetColumnCount();
1245+
UNUSED_ATTRIBUTE auto new_column_count = new_layout.GetColumnCount();
1246+
UNUSED_ATTRIBUTE auto orig_column_count = orig_layout.GetColumnCount();
12471247
PELOTON_ASSERT(new_column_count == orig_column_count);
12481248

12491249
oid_t orig_tile_offset, orig_tile_column_offset;

0 commit comments

Comments
 (0)