[PATCH 6/7] Fix a warning about an unused variable

Ondřej Lysoněk olysonek at redhat.com
Mon Aug 13 13:39:47 BST 2018


Signed-off-by: Ondřej Lysoněk <olysonek at redhat.com>
---
 src/config.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/config.c b/src/config.c
index ea939c8..36b6e37 100644
--- a/src/config.c
+++ b/src/config.c
@@ -536,7 +536,9 @@ static void doserial(void)
 {
   WIN *w;
   char *serial_device         = _(" A -    Serial Device      :");
+#if !HAVE_LOCKDEV
   char *lockfile_location     = _(" B - Lockfile Location     :");
+#endif
   char *callin_program        = _(" C -   Callin Program      :");
   char *callout_program       = _(" D -  Callout Program      :");
   char *bps_par_bits          = _(" E -    Bps/Par/Bits       :");
-- 
2.14.4




More information about the minicom-devel mailing list