mirror of
https://github.com/smittix/intercept.git
synced 2026-06-09 22:43:32 -07:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user