Use standard C initializer list syntax
Fix clang warning warning: use of GNU old-style field designator extension [-Wgnu-designator]
This commit is contained in:
@@ -129,8 +129,7 @@ static void *ticktime_thread(void *_this)
|
||||
pixel_length = this->pixel_length;
|
||||
|
||||
if (this->autoscroll) {
|
||||
tnext = time_add(this->latest_time,
|
||||
(struct timespec){tv_sec:0,tv_nsec:1});
|
||||
tnext = time_add(this->latest_time, (struct timespec){.tv_sec = 0, .tv_nsec = 1});
|
||||
tstart = time_sub(tnext, nano_to_time(pixel_length * width));
|
||||
this->start_time = tstart;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user