build: Make -Werror=int-conversion fatal
This should hopefully avoid me accidentally passing NULL for an `int` file descriptor in the future. Closes: #431 Approved by: giuseppe
This commit is contained in:
1 parent
76d6afa707
commit
e7b3cf9850
1 file changed
+1
@@ -27,6 +27,7 @@ CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
|
|||||||
-Werror=missing-declarations \
|
-Werror=missing-declarations \
|
||||||
-Werror=return-type \
|
-Werror=return-type \
|
||||||
-Werror=overflow \
|
-Werror=overflow \
|
||||||
|
-Werror=int-conversion \
|
||||||
-Werror=missing-include-dirs -Werror=aggregate-return \
|
-Werror=missing-include-dirs -Werror=aggregate-return \
|
||||||
-Werror=declaration-after-statement \
|
-Werror=declaration-after-statement \
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in new issue
Block a user