From: Tobias Burnus Date: Tue, 8 Apr 2025 10:04:59 +0000 (+0200) Subject: libgomp: Add -Wno-c-binding-type for omp_lib.f90 compilation X-Git-Tag: basepoints/gcc-16~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=649b3cf32aee7c22f24033d0f6f8c74196b74a19;p=thirdparty%2Fgcc.git libgomp: Add -Wno-c-binding-type for omp_lib.f90 compilation Silence the overeager "Warning: Variable 'depobj_list' at (1) is a dummy argument of the BIND(C) procedure ... but may not be C interoperable [-Wc-binding-type]" when compiling omp_lib.f90(.in). The argument is of integer kind 'omp_depend_kind = @OMP_DEPEND_KIND@'. libgomp/ChangeLog: * Makefile.am (%.mod): Add -Wno-c-binding-type. * Makefile.in: Regenerate. --- diff --git a/libgomp/Makefile.am b/libgomp/Makefile.am index 855f0affddf..e3202aeb0e0 100644 --- a/libgomp/Makefile.am +++ b/libgomp/Makefile.am @@ -97,7 +97,7 @@ openacc_kinds.mod: openacc.mod openacc.mod: openacc.lo : %.mod: %.f90 - $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only $< + $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only -Wno-c-binding-type $< fortran.lo: libgomp_f.h fortran.o: libgomp_f.h env.lo: libgomp_f.h diff --git a/libgomp/Makefile.in b/libgomp/Makefile.in index 25cb6fcd3c1..2a0a842af52 100644 --- a/libgomp/Makefile.in +++ b/libgomp/Makefile.in @@ -1388,7 +1388,7 @@ openacc_kinds.mod: openacc.mod openacc.mod: openacc.lo : %.mod: %.f90 - $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only $< + $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only -Wno-c-binding-type $< fortran.lo: libgomp_f.h fortran.o: libgomp_f.h env.lo: libgomp_f.h