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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to