Commit ad037396 authored by Tim Rühsen's avatar Tim Rühsen 🛠
Browse files

Only use clang's Nullability feature with enabled manywarnings

parent d543db81
Pipeline #79367448 passed with stages
in 35 minutes and 20 seconds
......@@ -208,6 +208,7 @@ if test -n "$WARN_CFLAGS"; then
# wget_WORD_REMOVE([GNULIB_WARN_CFLAGS], [$GNULIB_WARN_CFLAGS], [$CFLAGS])
fi
AC_SUBST([MANYWARNINGS], [-DWGET_MANYWARNINGS])
AC_SUBST([WARN_CFLAGS])
AC_SUBST([GNULIB_WARN_CFLAGS])
fi
......
......@@ -191,7 +191,7 @@
# define NULLABLE
#else
# define RETURNS_NONNULL
# if defined __clang_major__
# if defined __clang_major__ && defined WGET_MANYWARNINGS
# define NULLABLE _Nullable
# else
# define NULLABLE
......
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS) $(CODE_COVERAGE_CFLAGS) -DBUILDING_LIBWGET
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS) $(CODE_COVERAGE_CFLAGS) $(MANYWARNINGS) -DBUILDING_LIBWGET
lib_LTLIBRARIES = libwget.la
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment