On 9/27/19 8:03 AM, Jinpu Wang wrote:
On Tue, Sep 24, 2019 at 1:49 AM Bart Van Assche <[email protected]> wrote:
On 6/20/19 8:03 AM, Jack Wang wrote:
+static char cq_affinity_list[256] = "";

No empty initializers for file-scope variables please.
>
Is it guaranteed by the compiler, the file-scope variables will be
empty initialized?

That is guaranteed by the C standard. See also https://stackoverflow.com/questions/3373108/why-are-static-variables-auto-initialized-to-zero.

Bart.

Reply via email to