From 9eed4dfa5f90df82c04545380cf0744096be2b5b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 2 Aug 2020 09:23:18 -0700 Subject: [PATCH] ircd::m::event::fetch: Use hidden section for non-plt/internal linkage. --- include/ircd/m/event/fetch.h | 2 +- matrix/event_fetch.cc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ircd/m/event/fetch.h b/include/ircd/m/event/fetch.h index b3d36082f..d7e36a711 100644 --- a/include/ircd/m/event/fetch.h +++ b/include/ircd/m/event/fetch.h @@ -56,8 +56,8 @@ struct ircd::m::event::fetch bool valid; id::buf event_id_buf; - static string_view key(const event::idx *const &); static bool should_seek_json(const opts &); + static string_view key(const event::idx *const &); bool assign_from_row(const string_view &key); bool assign_from_json(const string_view &key); diff --git a/matrix/event_fetch.cc b/matrix/event_fetch.cc index 77d73f0b7..eb59d358e 100644 --- a/matrix/event_fetch.cc +++ b/matrix/event_fetch.cc @@ -258,6 +258,7 @@ ircd::m::event::fetch::fetch(const opts &opts) { } +[[gnu::visibility("hidden")]] bool ircd::m::event::fetch::assign_from_json(const string_view &key) try @@ -321,6 +322,7 @@ catch(const json::parse_error &e) return false; } +[[gnu::visibility("hidden")]] bool ircd::m::event::fetch::assign_from_row(const string_view &key) try @@ -379,6 +381,7 @@ catch(const json::parse_error &e) return false; } +[[gnu::visibility("hidden")]] bool ircd::m::event::fetch::should_seek_json(const opts &opts) { @@ -398,6 +401,7 @@ ircd::m::event::fetch::should_seek_json(const opts &opts) return false; } +[[gnu::visibility("hidden")]] ircd::string_view ircd::m::event::fetch::key(const event::idx *const &event_idx) {