Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fix warning issued during LTO build (#3766)
Fix the following warning emitted when using -flto with GCC 12.2.1: libtransmission/announcer.cc:929:8: warning: type ‘struct announce_data’ violates the C++ One Definition Rule [-Wodr] 929 | struct announce_data | ^ libtransmission/announcer-http.cc:299:8: note: a different type is defined in another translation unit 299 | struct announce_data | ^ libtransmission/announcer.cc:931:15: note: the first difference of corresponding definitions is field ‘tier_id’ 931 | int const tier_id; | ^ libtransmission/announcer-http.cc:301:22: note: a field with different name is defined in another translation unit 301 | tr_sha1_digest_t info_hash; | Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com> Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
- Loading branch information