Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git] / src / bin / lttng / commands / add_context.cpp
index b25d2d10a3aced9b771a8094bac5e12cf3bee335..5db0c5664888193d1b943558faf2ae4d3556a4aa 100644 (file)
@@ -217,7 +217,7 @@ static struct poptOption long_options[] = {
        _PERF_HW_CACHE(optstr "-prefetch-misses", name, type,           \
                PREFETCH, MISS, hide)
 
-static
+namespace {
 const struct ctx_opts {
        /* Needed for end-of-list item. */
        ctx_opts()
@@ -552,8 +552,7 @@ struct ctx_type_list {
 } ctx_type_list = {
        .head = CDS_LIST_HEAD_INIT(ctx_type_list.head),
 };
-
-
+} /* namespace */
 
 /*
  * Find context numerical value from string.
This page took 0.023281 seconds and 4 git commands to generate.