summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-12-15 22:09:43 -0800
committerMark Rowe <mark@vector35.com>2026-02-02 14:11:25 -0800
commit45ecf56486c5c6c29290d39978fbb46cab337e08 (patch)
treef59000437fd11b4af77250c980c856bdd4182798 /platform
parentc5cffef8306d7cec365d8ea75f45cd9f5acf4811 (diff)
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.
Diffstat (limited to 'platform')
-rw-r--r--platform/linux/platform_linux.cpp5
1 files changed, 2 insertions, 3 deletions
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<BinaryViewType> elf = BinaryViewType::GetByName("ELF");
if (elf)