Skip to content

Commit

Permalink
Remove the workaround for misleading format warnings
Browse files Browse the repository at this point in the history
Apparently they are no longer reported on Mingw GCC version shipped by Ubuntu Noble.
  • Loading branch information
Saancreed committed Jul 28, 2024
1 parent 5555528 commit b8182ab
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,6 @@ install_dir = get_option('libdir') / 'wine' / arch_dir_prefix + '-' + os_dir

cc = meson.get_compiler('c')

has_reasonable_format_warnings = cc.get_supported_arguments('-Wformat', '-Werror').length() < 2 or cc.compiles(
'''
#include <stdio.h>
int main()
{
printf("%lli\n", (long long)0);
}
''',
args: ['-Wformat', '-Werror'],
name: 'reasonable format warnings')

if not has_reasonable_format_warnings
add_project_arguments(cc.get_supported_arguments('-Wno-format'), language: ['c'])
endif

if not is_windows
lib_dl = cc.find_library('dl')
endif
Expand Down

0 comments on commit b8182ab

Please sign in to comment.