From 076339024fc5e8da39054fba37a225cdb5b2c395 Mon Sep 17 00:00:00 2001 From: Smittix Date: Wed, 18 Feb 2026 12:00:05 +0000 Subject: [PATCH] fix: Add newline before closing GCC pragma in SatDump lua_utils patch If lua_utils.cpp has no trailing newline the closing pragma was appended directly to the last line (};#pragma GCC diagnostic pop), causing a stray '#' compile error on GCC 13+ / Raspberry Pi OS Bookworm. Co-Authored-By: Claude Sonnet 4.6 --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index e010735..e238e60 100755 --- a/setup.sh +++ b/setup.sh @@ -799,6 +799,7 @@ install_satdump_from_source_debian() { echo '#pragma GCC diagnostic ignored "-Wdeprecated"' echo '#pragma GCC diagnostic ignored "-Wdeprecated-declarations"' cat "$lua_utils" + echo # ensure the file ends with a newline before the closing pragma echo '#pragma GCC diagnostic pop' } > "${lua_utils}.patched" && mv "${lua_utils}.patched" "$lua_utils" fi