Commit 0c0e8b57 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Force -Wformat for PE modules when using 'long' types.

Suggested by Eric Pouech. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f0cd33c6
......@@ -3057,6 +3057,11 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
output_filenames( make->extlib ? extra_cross_cflags_extlib : extra_cross_cflags );
if (make->module && is_crt_module( make->module ))
output_filename( "-fno-builtin" );
/* force -Wformat when using 'long' types, until all modules have been converted
* and we can remove -Wno-format */
if (!make->extlib && strarray_exists( &extra_cross_cflags, "-Wno-format" ) &&
!strarray_exists( &defines, "-DWINE_NO_LONG_TYPES" ))
output_filename( "-Wformat" );
output_filenames( cpp_flags );
output_filename( "$(CROSSCFLAGS)" );
output( "\n" );
......
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