Re: [Xen-devel] [PATCH for-4.9] xen: use a dummy file in C99 header check

2017-04-06 Thread Andrew Cooper
On 06/04/17 19:33, Wei Liu wrote: > The check builds header file as if it is a C file. Clang doesn't like > the idea of having dead code in C file. The check as-is fails on Clang > with unused function warnings. > > Use a dummy file like the C++ header check to fix this. > > Signed-off-by: Wei Liu

[Xen-devel] [PATCH for-4.9] xen: use a dummy file in C99 header check

2017-04-06 Thread Wei Liu
The check builds header file as if it is a C file. Clang doesn't like the idea of having dead code in C file. The check as-is fails on Clang with unused function warnings. Use a dummy file like the C++ header check to fix this. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: