Browse Source

qemu-timer: Add missing 'static' attribute

This fixes a warning from the static code analysis (smatch).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Stefan Weil 11 năm trước cách đây
mục cha
commit
fbdb664cb6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      qemu-timer.c

+ 1 - 1
qemu-timer.c

@@ -56,7 +56,7 @@ typedef struct QEMUClock {
 } QEMUClock;
 } QEMUClock;
 
 
 QEMUTimerListGroup main_loop_tlg;
 QEMUTimerListGroup main_loop_tlg;
-QEMUClock qemu_clocks[QEMU_CLOCK_MAX];
+static QEMUClock qemu_clocks[QEMU_CLOCK_MAX];
 
 
 /* A QEMUTimerList is a list of timers attached to a clock. More
 /* A QEMUTimerList is a list of timers attached to a clock. More
  * than one QEMUTimerList can be attached to each clock, for instance
  * than one QEMUTimerList can be attached to each clock, for instance