Kefu Chai
fe80b5e0d0
test: lib: do not return a local reference
...
the type of return value of `get_table_views()` is a reference, so we
cannot return a reference to a temporary value.
in this change, a member variable is added to hold the _table_schema,
so it can outlive the function call.
this should silence following warning from Clang:
```
test/lib/expr_test_utils.cc:543:16: error: returning reference to local temporary object [-Werror,-Wreturn-stack-address]
return {view_ptr(_table_schema)};
^~~~~~~~~~~~~~~~~~~~~~~~~
```
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com >
2023-03-05 17:37:33 +02:00
..
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-03-02 14:26:55 +08:00
2022-11-30 11:06:43 +02:00
2022-11-30 11:06:43 +02:00
2023-02-22 09:32:30 +02:00
2023-02-22 09:32:30 +02:00
2023-02-15 11:01:50 +02:00
2023-02-15 11:01:50 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-11-30 11:06:43 +02:00
2022-12-11 20:28:49 +02:00
2023-03-05 17:37:33 +02:00
2023-02-12 17:05:22 +02:00
2022-01-18 12:15:18 +01:00
2023-02-15 11:01:50 +02:00
2023-02-14 11:19:03 +02:00
2023-02-15 11:01:50 +02:00
2023-01-30 05:03:42 -05:00
2023-01-30 05:03:42 -05:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-05-31 23:42:34 +03:00
2023-02-14 11:19:03 +02:00
2022-04-07 12:07:24 +03:00
2023-02-28 21:56:53 +08:00
2022-12-08 15:37:33 +02:00
2023-02-28 21:56:53 +08:00
2023-02-15 11:01:50 +02:00
2023-01-27 21:56:31 +01:00
2022-01-18 12:15:18 +01:00
2022-03-30 15:42:51 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-02-01 20:14:51 -03:00
2023-02-01 20:14:51 -03:00
2022-01-18 12:15:18 +01:00
2023-02-28 21:56:53 +08:00
2023-02-15 11:01:50 +02:00
2022-11-11 09:22:51 -03:00
2022-11-11 09:22:51 -03:00
2023-02-24 12:14:18 +02:00
2023-02-24 12:14:18 +02:00
2023-02-21 17:42:18 +03:00
2023-02-06 18:11:32 +01:00
2023-02-15 11:01:50 +02:00
2022-01-18 12:15:18 +01:00
2023-01-30 05:03:42 -05:00
2022-12-11 20:28:49 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00