From 83559ffd6da0046dc45965247028faad441c95fc Mon Sep 17 00:00:00 2001
From: Henrik Stolzmann <henrik.stolzmann@mailbox.tu-dresden.de>
Date: Sun, 14 Apr 2019 14:14:52 +0200
Subject: [PATCH] Fixed warning: "unused-function" "FillSonPaths"

Added a preprocessor if conditon around the definition of "FillSonPaths"
because the only use in this file is contained in such an if condition.
````
 #ifdef __THREEDIM__
static void FillSonPaths (MGIO_RR_RULE *rule)
{

 ...

}
 #endif
````

````
        #ifdef __THREEDIM__
  /* 2D: not even in rm */
  /* son path */
  FillSonPaths(mr);
        #endif
````
---
 gm/er.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gm/er.cc b/gm/er.cc
index ee2189ae9..514313818 100644
--- a/gm/er.cc
+++ b/gm/er.cc
@@ -1267,7 +1267,7 @@ static void FindPathForNeighbours (MGIO_RR_RULE *rule, SHORT myID, SHORT Status[
    .n   none
    doctext_disabled*/
 /****************************************************************************/
-
+#ifdef __THREEDIM__
 static void FillSonPaths (MGIO_RR_RULE *rule)
 {
   SHORT Status[MAX_SONS];
@@ -1287,7 +1287,7 @@ static void FillSonPaths (MGIO_RR_RULE *rule)
 
   return;
 }
-
+#endif
 /****************************************************************************/
 /*doctext_disabled
     GetFSidesOfCorners - fill array for father side the given side corners belong to
-- 
GitLab