Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Commit 5aec8fe

Browse files
kdudkakeszybz
authored andcommitted
_sd-common.h: avoid parsing errors with Coverity
The commit 1070d27 which was supposed too fix this does not seem to take effect any more. We get again 34% compilation success rate while scanning systemd itself. Moreover, the installed header file breaks compilation of programs that include it: "/usr/include/systemd/_sd-common.h", line 23: error systemd#35: #error directive: "Do not include _sd-common.h directly; it is a private header." # error "Do not include _sd-common.h directly; it is a private header." ^ (cherry picked from commit 4191b32)
1 parent f9ad4ea commit 5aec8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systemd/_sd-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/* This is a private header; never even think of including this directly! */
2121

22-
#if defined(__INCLUDE_LEVEL__) && __INCLUDE_LEVEL__ <= 1
22+
#if defined(__INCLUDE_LEVEL__) && __INCLUDE_LEVEL__ <= 1 && !defined(__COVERITY__)
2323
# error "Do not include _sd-common.h directly; it is a private header."
2424
#endif
2525

0 commit comments

Comments
 (0)