[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libcdio-devel] [PATCH] Fix gcc warnings
From: |
Thomas Schmitt |
Subject: |
Re: [Libcdio-devel] [PATCH] Fix gcc warnings |
Date: |
Thu, 23 Mar 2023 20:12:24 +0100 |
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
- [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 <=
- Re: [Libcdio-devel] [PATCH] Fix gcc warnings, Rocky Bernstein, 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/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