If this happens:
lldpd.c:1577:14: warning: variable 'pidfile' set but not used [-Wunused-but-set-variable]
const char *pidfile = LLDPD_PID_FILE;
Then the other places using pidfile should get the same ifndef treatment
char *platform_override = NULL;
char *lsb_release = NULL;
const char *lldpcli = LLDPCLI_PATH;
+#ifndef HOST_OS_OSX
const char *pidfile = LLDPD_PID_FILE;
+#endif
int smart = 15;
int receiveonly = 0, version = 0;
int ctl;
case 'D':
log_accept(optarg);
break;
+#ifndef HOST_OS_OSX
case 'p':
pidfile = optarg;
break;
+#endif
case 'r':
receiveonly = 1;
break;