From 7287300e0d6121152d3cd616b971b7cb708d9319 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 23 Oct 2016 19:42:05 +0200
Subject: [PATCH] tweaks: compile two parameters unconditionally

---
 src/cut.c   | 12 +++---------
 src/proto.h |  8 +-------
 2 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/src/cut.c b/src/cut.c
index 14c52c2a..bfb9a87d 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -115,13 +115,7 @@ void cut_to_eof(void)
  * copy_text is TRUE, copy the text back into the filestruct afterward.
  * If cut_till_eof is TRUE, move all text from the current cursor
  * position to the end of the file into the cutbuffer. */
-void do_cut_text(
-#ifndef NANO_TINY
-	bool copy_text, bool cut_till_eof
-#else
-	void
-#endif
-	)
+void do_cut_text(bool copy_text, bool cut_till_eof)
 {
 #ifndef NANO_TINY
     filestruct *cb_save = NULL;
@@ -221,10 +215,10 @@ void do_cut_text_void(void)
 {
 #ifndef NANO_TINY
     add_undo(CUT);
+#endif
     do_cut_text(FALSE, FALSE);
+#ifndef NANO_TINY
     update_undo(CUT);
-#else
-    do_cut_text();
 #endif
 }
 
diff --git a/src/proto.h b/src/proto.h
index 8bb16da0..4222a325 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -280,13 +280,7 @@ void cut_marked(void);
 void cut_to_eol(void);
 void cut_to_eof(void);
 #endif
-void do_cut_text(
-#ifndef NANO_TINY
-	bool copy_text, bool cut_till_eof
-#else
-	void
-#endif
-	);
+void do_cut_text(bool copy_text, bool cut_till_eof);
 void do_cut_text_void(void);
 #ifndef NANO_TINY
 void do_copy_text(void);
-- 
GitLab