From 9b3cb24d4a252dc3b0bbe3a26f4fa67274b1c9e8 Mon Sep 17 00:00:00 2001
From: Markus Himmel <markus@himmel-villmar.de>
Date: Sat, 3 Oct 2015 10:24:07 +0000
Subject: [PATCH] Fix signature for non-debug stubs and fix unicode literals

---
 src/frontend/debug.cc  | 4 ++--
 src/frontend/output.cc | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/frontend/debug.cc b/src/frontend/debug.cc
index f7df145..541de85 100644
--- a/src/frontend/debug.cc
+++ b/src/frontend/debug.cc
@@ -94,8 +94,8 @@ int dbg_printf(const char *fmt, ...)
 
 #else /* !DEBUG */
 
-int dbg_open(const char *name __attribute__((unused)) ) { return 0; }
-int dbg_printf(const char *fmt __attribute__((unused)), ...) { return 0; }
+int dbg_open(const char *name) { return 0; }
+int dbg_printf(const char *fmt, ...) { return 0; }
 int dbg_close(void) { return 0; }
 
 #endif /* DEBUG */
diff --git a/src/frontend/output.cc b/src/frontend/output.cc
index 21698cb..fda1ea8 100644
--- a/src/frontend/output.cc
+++ b/src/frontend/output.cc
@@ -32,8 +32,8 @@
 
 #define MAX_BOARD_RANGE 65
 #define PIECE_SIZE 8
-const char w_pieces[6][PIECE_SIZE] = {"\u2654 ", "\u2655 ", "\u2656 ", "\u2657 ", "\u2658 ", "\u2659 "};
-const char b_pieces[6][PIECE_SIZE] = {"\u265A ", "\u265B ", "\u265C ", "\u265D ", "\u265E ", "\u265F "};
+const char w_pieces[6][PIECE_SIZE] = {"\\u2654 ", "\\u2655 ", "\\u2656 ", "\\u2657 ", "\\u2658 ", "\\u2659 "};
+const char b_pieces[6][PIECE_SIZE] = {"\\u265A ", "\\u265B ", "\\u265C ", "\\u265D ", "\\u265E ", "\\u265F "};
 const unsigned ui_king = 0;
 const unsigned ui_queen = 1;
 const unsigned ui_rook = 2;
-- 
2.2.2

