[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3] RFC: Automatically check xen's public headers for C++ pitfalls.
At 08:36 +0000 on 27 Feb (1425022578), Jan Beulich wrote: > >>> On 26.02.15 at 17:24, <tim@xxxxxxx> wrote: > > +PUBLIC_ANSI_HEADERS := $(filter-out public/%ctl.h public/xsm/% > > public/%hvm/save.h, $(PUBLIC_HEADERS)) > > + > > +headers.chk: $(PUBLIC_ANSI_HEADERS) Makefile > > + for i in $(filter %.h,$^); do \ > > + $(CC) -x c -ansi -Wall -Werror -include stdint.h \ > > + -S -o /dev/null $$i || exit 1; \ > > + echo $$i; \ > > + done >$@.new > > + mv $@.new $@ > > + > > +headers++.chk: $(PUBLIC_HEADERS) Makefile > > + if $(CXX) -v >/dev/null 2>&1; then \ > > + for i in $(filter %.h,$^); do \ > > + $(CXX) -x c++ -std=gnu++98 -Wall -Werror \ > > + -D__XEN_TOOLS__ -Dprivate=private_is_a_keyword_in_cpp \ > > With -D__XEN_TOOLS__ added, did you check that domctl.h and > sysctl.h still actually need to be excluded from this test? The C++ check includes those headers and defines __XEN_TOOLS__; the ANSI C check does neither (as before). Would you like to change that too? Tim. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |