From 45ecf56486c5c6c29290d39978fbb46cab337e08 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Mon, 15 Dec 2025 22:09:43 -0800 Subject: Annotate deprecated C++ APIs A `BN_DEPRECATED` macro is introduced that expands to a `[[deprecated(msg)]]` attribute. Using functions that are annotated as deprecated will generate a compiler warning. This should help make users aware that they should migrate to replacement APIs. --- platform/linux/platform_linux.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'platform/linux/platform_linux.cpp') diff --git a/platform/linux/platform_linux.cpp b/platform/linux/platform_linux.cpp index 796df353..7f625c06 100644 --- a/platform/linux/platform_linux.cpp +++ b/platform/linux/platform_linux.cpp @@ -436,9 +436,8 @@ extern "C" Platform::Register("linux", g_linuxX32); // Linux binaries sometimes have an OS identifier of zero, even though 3 is the correct one - BinaryViewType::RegisterPlatform("ELF", 0, x64, x64Platform); - BinaryViewType::RegisterPlatform("ELF", 3, x64, x64Platform); - + BinaryViewType::RegisterPlatform("ELF", 0, x64Platform); + BinaryViewType::RegisterPlatform("ELF", 3, x64Platform); Ref elf = BinaryViewType::GetByName("ELF"); if (elf) -- cgit v1.3.1