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:
Robert Schmidt
2024-04-18 14:16:09 +02:00
parent 24baf08c87
commit ed89498c4f
22 changed files with 26 additions and 28 deletions
+1 -2
View File
@@ -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 {