Error on implicit function declaration and -return type for C (#1393492)
Add -Werror=implicit-function-declaration -Werror=implicit-int to global cflags as per https://fedoraproject.org/wiki/Changes/Fedora26CFlags
This commit is contained in:
parent
3081c4e7d5
commit
beb08c6bba
2
macros
2
macros
@ -147,7 +147,7 @@
|
||||
|
||||
%__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags}
|
||||
|
||||
%__global_cflags %{optflags}
|
||||
%__global_cflags %{optflags} -Werror=implicit-function-declaration -Werror=implicit-int
|
||||
%__global_cxxflags %{optflags}
|
||||
%__global_fflags %{optflags} -I%_fmoddir
|
||||
%__global_fcflags %{optflags} -I%_fmoddir
|
||||
|
@ -140,6 +140,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
|
||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||
|
||||
%changelog
|
||||
* Wed Nov 30 2016 Panu Matilainen <pmatilai@redhat.com> - 60-1
|
||||
- Error on implicit function declaration and -return type for C (#1393492)
|
||||
|
||||
* Wed Nov 30 2016 Panu Matilainen <pmatilai@redhat.com> - 59-1
|
||||
- Move global compiler flags to __global_compiler_flags macro
|
||||
- Introduce separate __global_fooflags for C, C++ and Fortran
|
||||
|
Loading…
Reference in New Issue
Block a user