ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.81k stars 889 forks source link

tools/headerversions.c: fix build without SQLite #7677

Open whitslack opened 2 days ago

whitslack commented 2 days ago

Commit 531845971cf94d8e5c0de67c8531578bc2656353 broke the build without SQLite because this code:

new = tal_fmt(NULL, template,
              IF_SQLITE3(sqlite3_libversion_number()));

preprocesses into:

new = tal_fmt(NULL, template,
              );

which has a syntax error. Fix it by moving the comma into the macro argument.

Fixes: 531845971cf94d8e5c0de67c8531578bc2656353 Changelog-None

[!IMPORTANT] Open for merging new PRs until the next PR freeze date is confirmed!

Checklist

Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked: