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

Ondřej Lysoněk olysonek at redhat.com
Mon Jul 30 16:11:12 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 f7f348e..a192af1 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