1
0
Files
Sergey Korolev 9344c7ed02 perf tools: sched-messaging.c: fix an uninitialized variable warning
In function 'ready',
    inlined from 'sender' at bench/sched-messaging.c:89:2:
bench/sched-messaging.c:75:13: warning: 'dummy' may be used uninitialized [-Wmaybe-uninitialized]
   75 |         if (write(ready_out, &dummy, 1) != 1)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from bench/../perf-sys.h:4,
                 from bench/../perf.h:15,
                 from bench/sched-messaging.c:12:
bench/sched-messaging.c: In function 'sender':
usr/include/unistd.h:51:9: note: by argument 2 of type 'const void *' to 'write' declared here
   51 | ssize_t write(int, const void *, size_t);
      |         ^~~~~
bench/sched-messaging.c:71:14: note: 'dummy' declared here
   71 |         char dummy;
      |              ^~~~~
2022-09-12 14:29:54 +03:00
..
2018-11-15 21:36:32 +03:00
2018-11-15 21:36:32 +03:00
2018-11-15 21:36:32 +03:00
2018-11-15 21:36:32 +03:00
2018-11-15 21:36:32 +03:00
2018-11-15 21:36:32 +03:00
2018-11-15 21:36:32 +03:00
2022-06-07 23:16:26 +03:00