[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libcdio-devel] [PATCH] Fix gcc warnings
From: |
Rocky Bernstein |
Subject: |
Re: [Libcdio-devel] [PATCH] Fix gcc warnings |
Date: |
Thu, 23 Mar 2023 15:54:06 -0400 |
On Thu, Mar 23, 2023 at 3:12 PM Thomas Schmitt <scdbackup@gmx.net> wrote:
> Hi,
>
> the patch applies and compiles without complaints.
>
> I was riddling about the exact meaning of "{ 0 }" when the struct has more
> than one member. In Linux time.h struct tm is declared with 11 members.
> Finally i found in C11 specs (ISO/IEC 9899:2011 6.7.9 21):
> If there are fewer initializers in a brace-enclosed list than there
> are elements or members of an aggregate, [...] the remainder of the
> aggregate shall be initialized implicitly the same as objects that have
> static storage duration.
> And as we know from Kermighan & Ritchie, static variables are
> automatically initialized to zero.
>
> I lack of any test ideas for a mere initialization.
>
> So i pushed the branch "pete_batard_gcc_warnings".
> It is based on "master", not on the pending "pete_batard_ce_v3".
>
> ----------------------------------------------------------------------
>
> Rocky:
> I never merged anything in git. If you expect me to merge on my own, then
> please tell me the exact command which you would use for merging in
> "pete_batard_gcc_warnings" and "pete_batard_ce_v3".
> Actually i would prefer to have you as final doorman at "master".
>
>
> Have a nice day :)
>
> Thomas
>
I was thinking that Pete would do the merge since he also has commit rights
after the two of you decide that it is time to merge
Pete knows which branch and so is the right one and so on. Of course, I am
happy to help in whatever way I can or that makes sense.
- [Libcdio-devel] [PATCH] Fix gcc warnings, Pete Batard, 2023/03/22
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Rocky Bernstein, 2023/03/22
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Thomas Schmitt, 2023/03/23
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings,
Rocky Bernstein <=
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Rocky Bernstein, 2023/03/23
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Thomas Schmitt, 2023/03/23
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Rocky Bernstein, 2023/03/23
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Thomas Schmitt, 2023/03/26
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Mario Đanić, 2023/03/26
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Rocky Bernstein, 2023/03/26