Skip to content

Commit

Permalink
avoid complex expression in struct member initializer
Browse files Browse the repository at this point in the history
Some old compiler may complain about this. Let us only use simple expression.

Signed-off-by: Yonghong Song <yhs@fb.com>
  • Loading branch information
yonghong-song committed Jan 7, 2020
1 parent 590ac9d commit c707a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cc/api/BPFTable.cc
Expand Up @@ -255,10 +255,11 @@ BPFStackTable::BPFStackTable(const TableDesc& desc, bool use_debug_file,
throw std::invalid_argument("Table '" + desc.name +
"' is not a stack table");

uint32_t use_symbol_type = (1 << STT_FUNC) | (1 << STT_GNU_IFUNC);
symbol_option_ = {.use_debug_file = use_debug_file,
.check_debug_file_crc = check_debug_file_crc,
.lazy_symbolize = 1,
.use_symbol_type = (1 << STT_FUNC) | (1 << STT_GNU_IFUNC)};
.use_symbol_type = use_symbol_type};
}

BPFStackTable::BPFStackTable(BPFStackTable&& that)
Expand Down

0 comments on commit c707a55

Please sign in to comment.