stdio: Don't break attribute 'scanf' on clang.
[gnulib.git] / modules / snippet / link-warning
blob8c1b16b0be3d7cbf8e34ef696610e9e801966fe8
1 Description:
2 A C macro for emitting link time warnings.
4 Applicability:
5 all
7 Files:
8 build-aux/snippet/link-warning.h
10 Depends-on:
12 configure.ac:
13 AC_REQUIRE([gl_FEATURES_H])
15 Makefile.am:
16 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
17 # statements but through direct file reference. Therefore this snippet must be
18 # present in all Makefiles that need it. This is ensured by the applicability
19 # 'all' defined above.
21 # FIXME: The link-warning.h rule probably does not work if
22 # gnulib-tool's --gnu-make option is used, when the build is an
23 # out-of-source build that relies on VPATH.
25 BUILT_SOURCES += link-warning.h
26 link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h
27         $(AM_V_GEN)rm -f $@-t $@ && \
28         sed -n -e '/HAVE_FEATURES_H/,$$p' \
29           < $(top_srcdir)/build-aux/snippet/link-warning.h \
30         | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
31           > $@-t && \
32         mv $@-t $@
33 MOSTLYCLEANFILES += link-warning.h link-warning.h-t
35 LINK_WARNING_H=link-warning.h
37 Include:
39 License:
40 LGPLv2+
42 Maintainer:
43 all