Re: eit.c:394:13: error: 'stime' was not declared in this scope; did you mean 'ctime'?

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

 



Martin Gansser wrote:
> +        timespec ts = {0};

The compiler will warn about the missing initializers with this idiom. 
(struct timespec has more than one member.) Write this instead:
timespec ts = {};
(If you omit the initializer list within the braces entirely, as I have done 
above, GCC will know that you want to initialize the struct to all zeros and 
not complain about the missing zeros. Just make sure you keep the = {} part, 
otherwise the struct will not be initialized at all.)

        Kevin Kofler
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux