Skip to content

Commit a1819ff

Browse files
committed
Silence warning
1 parent 5334aee commit a1819ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ystdlib/wrapped_facade_headers/sys/types.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
#include <sys/_types/_nlink_t.h>
1616
#include <sys/_types/_uid_t.h>
1717
#include <sys/_types/_off_t.h>
18-
#include <sys/dtrace.h> # For off64_t
1918
#include <sys/_types/_pid_t.h>
2019
#include <sys/_types/_id_t.h>
2120
#include <sys/_types/_ssize_t.h>
2221
#include <sys/_types/_caddr_t.h>
2322
#include <sys/_types/_key_t.h>
23+
24+
# For off64_t
25+
#include <sys/dtrace.h>
2426
#endif
2527
// IWYU pragma: end_exports
2628
// clang-format on

src/ystdlib/wrapped_facade_headers/test/test_sys_types.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ TEST_CASE("test_sys_types_daddr_t", "[wrapped_facade_headers][sys_types][daddr_t
117117
}
118118

119119
TEST_CASE("test_sys_types_caddr_t", "[wrapped_facade_headers][sys_types][caddr_t]") {
120+
// NOLINTNEXTLINE(misc-misplaced-const)
120121
caddr_t const p{nullptr};
121122
REQUIRE(nullptr == p);
122123
}

0 commit comments

Comments
 (0)