Skip to content

Commit a0d1d30

Browse files
committed
Fix include-what-you-use warnings
1 parent c7f9136 commit a0d1d30

File tree

8 files changed

+6
-8
lines changed

8 files changed

+6
-8
lines changed

libs/common/assert.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* Assert implementation
2929
*/
3030

31+
#include "common/compiler.h"
3132
#include "common/macros.h"
3233

3334
AM_NORETURN void am_assert_failure(

libs/common/test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <stdint.h>
3131
#include <stddef.h>/* IWYU pragma: keep */
3232

33-
#include "common/compiler.h"
3433
#include "common/macros.h"
3534
#include "common/alignment.h"
3635

libs/onesize/onesize.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include <stdint.h>
3232
#include <string.h>
3333

34-
#include "common/compiler.h"
3534
#include "common/macros.h"
3635
#include "common/alignment.h"
3736
#include "slist/slist.h"

libs/strlib/strlib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
/* IWYU pragma: no_include <__stdarg_va_arg.h> */
4242

4343
#include "common/macros.h"
44-
#include "common/compiler.h"
4544
#include "strlib/strlib.h"
4645

4746
/* https://stackoverflow.com/a/30734030/2410359 */

libs/strlib/strlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <inttypes.h>
3939
#include <stdbool.h>
4040

41-
#include "common/compiler.h"
41+
#include "common/macros.h"
4242

4343
/**
4444
* Compare two strings in a case insensitive manner.

libs/strlib/test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <math.h>
3535
#include <string.h>
3636

37-
#include "common/compiler.h"
3837
#include "common/macros.h"
3938
#include "strlib/strlib.h"
4039

libs/timer/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131

3232
#include <stdbool.h>
3333

34-
#include "common/compiler.h"
34+
#include "common/macros.h"
3535
#include "event/event.h"
3636
#include "dlist/dlist.h"
3737
#include "pal/pal.h"

pixi.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ cppcheck = "meson compile -C build cppcheck"
1313
tidy = "meson compile -C build tidy"
1414
test = "meson test -C build"
1515
libs = "meson compile -C build"
16-
all = { depends-on = ["setup", "style", "cppcheck", "tidy", "libs", "test"] }
16+
iwyu = "meson compile -C build iwyu"
17+
all = { depends-on = ["setup", "libs", "style", "cppcheck", "tidy", "iwyu", "test"] }
1718

1819
[dependencies]
1920
meson = ">=1.6.0,<2"
2021
ninja = ">=1.12.1,<2"
2122
gcc = ">=14.2.0,<14.3"
2223
cppcheck = ">=2.16.0,<2.17"
23-
clang = ">=19.1.3,<19.2"
24+
clang = ">=18.1.8,<=18.1.8"
2425
make = ">=4.4.1,<4.5"
2526
include-what-you-use = ">=0.22,<0.23"
2627

0 commit comments

Comments
 (0)