meson: Define LIBPLDM_ABI_DEPRECATED_UNSAFE as empty as required

Not doing so for -Dabi=stable,testing causes unnecessary compilation
errors. The library now builds with:

    meson setup -Dabi=stable,testing -Dtests=false ...

Suggested-by: Sam Abu-Nassar <sam.abunassar@xconn-tech.com>
Fixes: 36324f6bea8c ("Apply GCC's tainted_args attribute to library entrypoints")
Change-Id: Ie825e036171edeec321c4df244c075da288b60e4
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bf11f29..4c11a22 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -59,6 +59,8 @@
 
 ### Fixed
 
+- meson: Define LIBPLDM_ABI_DEPRECATED_UNSAFE as empty as required
+
 ### Security
 
 ## [0.12.0] 2025-04-05
diff --git a/meson.build b/meson.build
index 2ed66e7..6f2b11f 100644
--- a/meson.build
+++ b/meson.build
@@ -59,6 +59,7 @@
     add_project_arguments('-DLIBPLDM_API_DEPRECATED', language: ['c', 'cpp'])
 else
     conf.set('LIBPLDM_ABI_DEPRECATED', '')
+    conf.set('LIBPLDM_ABI_DEPRECATED_UNSAFE', '')
 endif
 conf.set('LIBPLDM_ABI_STABLE', entrypoint)  # Always expose the stable symbols
 if get_option('abi').contains('testing')
diff --git a/scripts/pre-submit b/scripts/pre-submit
index 1bed2d6..cd5186a 100755
--- a/scripts/pre-submit
+++ b/scripts/pre-submit
@@ -44,3 +44,8 @@
 meson configure -Dabi=deprecated,stable "$BUILD"
 meson compile -C "$BUILD"
 meson test -C "$BUILD"
+
+# Ensure the build completes for maintenance purposes. Note that tests are
+# disabled as we don't yet guard them appropriately.
+meson configure -Dabi=stable,testing -Dtests=false "$BUILD"
+meson compile -C "$BUILD"