diff --git a/Makefile.am b/Makefile.am index 969af27e..c560f807 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1142,9 +1142,9 @@ EXTRA_DIST += \ $(COMPILE) \ -Wall \ -Werror \ - -Wno-error=cpp \ -I$(srcdir)/include \ -I$(builddir)/include \ + -D_NL_NO_WARN_DEPRECATED_HEADER \ -c \ -o $@ $< diff --git a/include/netlink/cache-api.h b/include/netlink/cache-api.h index 851eca0b..e8a41706 100644 --- a/include/netlink/cache-api.h +++ b/include/netlink/cache-api.h @@ -9,6 +9,8 @@ #include #include +#ifndef _NL_NO_WARN_DEPRECATED_HEADER #warning "You are including a deprecated header file, include ." +#endif #endif diff --git a/include/netlink/route/link/api.h b/include/netlink/route/link/api.h index abdd8b29..ef11d2f5 100644 --- a/include/netlink/route/link/api.h +++ b/include/netlink/route/link/api.h @@ -9,6 +9,8 @@ #include #include +#ifndef _NL_NO_WARN_DEPRECATED_HEADER #warning "You are including a deprecated header file, include ." +#endif #endif diff --git a/include/netlink/route/link/info-api.h b/include/netlink/route/link/info-api.h index 11cffcfa..88461bbe 100644 --- a/include/netlink/route/link/info-api.h +++ b/include/netlink/route/link/info-api.h @@ -9,6 +9,8 @@ #include #include +#ifndef _NL_NO_WARN_DEPRECATED_HEADER #warning "You are including a deprecated header file, include ." +#endif #endif diff --git a/include/netlink/route/tc-api.h b/include/netlink/route/tc-api.h index 3f400baa..36b1b0fc 100644 --- a/include/netlink/route/tc-api.h +++ b/include/netlink/route/tc-api.h @@ -10,6 +10,8 @@ #include #include +#ifndef _NL_NO_WARN_DEPRECATED_HEADER #warning "You are including a deprecated header file, include ." +#endif #endif