clsync / clsync

file live sync daemon based on inotify/kqueue/bsm (Linux, FreeBSD), written in GNU C

Home Page:http://ut.mephi.ru/oss/clsync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building problems in GIO

xaionaro opened this issue · comments

mon_gio.c: In function ‘gio_wait_now’:
mon_gio.c:240:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
  int result;
      ^
mon_gio.c: In function ‘dir_gotevent’:
mon_gio.c:78:11: warning: ‘path_rel’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  ev->path          = path;
           ^
mon_gio.c:116:20: note: ‘path_rel’ was declared here
  char *path_full, *path_rel;

This warning is no longer reprodusible with gcc-10. Sometimes warnings about undefined variables are false positives.