Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Peter Maydell
On Tue, 15 Feb 2022 at 14:11, Christian Schoenebeck wrote: > > On Dienstag, 15. Februar 2022 14:45:00 CET Peter Maydell wrote: > > I think this won't zero-initialize, because this is a function > > level variable, not a global or static, but maybe ObjectiveC > > rules differ from C here? (Besides,

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Christian Schoenebeck
On Dienstag, 15. Februar 2022 14:45:00 CET Peter Maydell wrote: > On Tue, 15 Feb 2022 at 13:18, Christian Schoenebeck > > wrote: > > On Dienstag, 15. Februar 2022 13:06:25 CET Philippe Mathieu-Daudé via wrote: > > > We globally ignore the 'initializer overrides' warnings in C code > > > since co

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Philippe Mathieu-Daudé via
On 15/2/22 14:45, Peter Maydell wrote: On Tue, 15 Feb 2022 at 13:18, Christian Schoenebeck wrote: On Dienstag, 15. Februar 2022 13:06:25 CET Philippe Mathieu-Daudé via wrote: We globally ignore the 'initializer overrides' warnings in C code since commit c1556a812a ("configure: Disable (clang)

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Peter Maydell
On Tue, 15 Feb 2022 at 13:18, Christian Schoenebeck wrote: > > On Dienstag, 15. Februar 2022 13:06:25 CET Philippe Mathieu-Daudé via wrote: > > We globally ignore the 'initializer overrides' warnings in C code > > since commit c1556a812a ("configure: Disable (clang) > > initializer-overrides warni

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Akihiko Odaki
On Tue, Feb 15, 2022 at 9:35 PM Peter Maydell wrote: > > On Tue, 15 Feb 2022 at 12:13, Philippe Mathieu-Daudé via > wrote: > > > > We globally ignore the 'initializer overrides' warnings in C code > > since commit c1556a812a ("configure: Disable (clang) > > initializer-overrides warnings"). Unfor

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Philippe Mathieu-Daudé via
On 15/2/22 14:19, Akihiko Odaki wrote: On Tue, Feb 15, 2022 at 9:35 PM Peter Maydell wrote: On Tue, 15 Feb 2022 at 12:13, Philippe Mathieu-Daudé via wrote: We globally ignore the 'initializer overrides' warnings in C code since commit c1556a812a ("configure: Disable (clang) initializer-over

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Christian Schoenebeck
On Dienstag, 15. Februar 2022 13:06:25 CET Philippe Mathieu-Daudé via wrote: > We globally ignore the 'initializer overrides' warnings in C code > since commit c1556a812a ("configure: Disable (clang) > initializer-overrides warnings"). Unfortunately the ${gcc_flags} > variable is not propagated to

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Peter Maydell
On Tue, 15 Feb 2022 at 12:13, Philippe Mathieu-Daudé via wrote: > > We globally ignore the 'initializer overrides' warnings in C code > since commit c1556a812a ("configure: Disable (clang) > initializer-overrides warnings"). Unfortunately the ${gcc_flags} > variable is not propagated to Objective-

[RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Philippe Mathieu-Daudé via
We globally ignore the 'initializer overrides' warnings in C code since commit c1556a812a ("configure: Disable (clang) initializer-overrides warnings"). Unfortunately the ${gcc_flags} variable is not propagated to Objective-C flags ($OBJCFLAGS). Instead of reworking the configure script to test all