diff options
| author | Alex Deymo <deymo@google.com> | 2016-05-12 19:06:21 -0700 |
|---|---|---|
| committer | Treehugger Robot <treehugger-gerrit@google.com> | 2016-05-13 23:51:54 +0000 |
| commit | 857ded125104a6e8dc7cabb3035a1fa42ccbd166 (patch) | |
| tree | 07d3959ecd44548c7e1ba7e406f65ba9c82fc5c8 /scripts/update_payload/format_utils.py | |
| parent | a479a4d0039308fcfdda21f2a8ec8d040fd716f2 (diff) | |
Define static members outside the template class.
When defining a static const member of a template class,
MyClass<T1>::some_static_member and MyClass<T2>::some_static_member
could be different values. We define these values inline in the class,
but ASan complains about an undefined reference.
Since those constants don't depend on the type, This patch moves them
to plain constants in the anonymous namespace.
Bug: chromium:611405
TEST=USE="clang asan" emerge-link update_engine
Change-Id: I6a1becb87f186cca9341ff4dbaf5eb2b7ba456a6
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions
