Skip to content

Silence warnings#172

Merged
behrmann merged 2 commits into
systemd:mainfrom
keszybz:silence-warning
Jun 18, 2026
Merged

Silence warnings#172
behrmann merged 2 commits into
systemd:mainfrom
keszybz:silence-warning

Conversation

@keszybz

@keszybz keszybz commented Jun 18, 2026

Copy link
Copy Markdown
Member

No description provided.

keszybz added 2 commits June 18, 2026 14:37
There is no great solution. Python.h expects to be included first and to be
allowed to pollute the define namespace. We don't want to do that, because in
other places we want to include sd-messages.h early, and also we want to use a
higher standard than the obsolete version that Python.h declares.
Unfortunately, there is no nice solution to this problem. So call #undef
enough times to silence warnings and after including the header, define the
standard for our code to a recent version.
@behrmann behrmann merged commit 3a7daca into systemd:main Jun 18, 2026
17 checks passed
@keszybz keszybz deleted the silence-warning branch June 18, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants