소스 검색

Fix unused-parameter warning in systemd_watchdog_callback

Nick Mathewson 9 년 전
부모
커밋
e009c2da51
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/or/main.c

+ 2 - 0
src/or/main.c

@@ -1776,6 +1776,8 @@ static periodic_timer_t *systemd_watchdog_timer = NULL;
 static void
 systemd_watchdog_callback(periodic_timer_t *timer, void *arg)
 {
+  (void)timer;
+  (void)arg;
   sd_notify(0, "WATCHDOG=1");
 }
 #endif