Re: [PATCH v4 10/25] ibtrs: server: main functionality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/27/19 8:03 AM, Jinpu Wang wrote:
On Tue, Sep 24, 2019 at 1:49 AM Bart Van Assche <bvanassche@xxxxxxx> 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.



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux