From 23e630e0a257a5d971c28c38545589d079e471c7 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Sat, 22 Aug 2020 18:15:59 +0200
Subject: [PATCH] Begening to clear warnings

---
 LNOTES            | 17 -----------------
 src/ana/inter.c   | 13 +++----------
 src/ana/numbers.c | 14 ++++----------
 3 files changed, 7 insertions(+), 37 deletions(-)

diff --git a/LNOTES b/LNOTES
index 3d87f43..8630335 100644
--- a/LNOTES
+++ b/LNOTES
@@ -1,7 +1,5 @@
-
 Known LOG bugs.  "*" = supposedly fixed, not yet tested.
 
-
    logsimh appears to be causing bus errors, just before the instance
    would have become active.  Name was "P".
 
@@ -67,7 +65,6 @@ Known LOG bugs.  "*" = supposedly fixed, not yet tested.
 
    Go through and check out every p2c warning message!
 
-
 ========================================================================
 
    In Unix, the timestep memory limit of the Scope screen should be
@@ -78,17 +75,3 @@ Known LOG bugs.  "*" = supposedly fixed, not yet tested.
    Can't throw gates off the sides of the window.
 
 ========================================================================
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/ana/inter.c b/src/ana/inter.c
index 9ad454b..c4c8d54 100644
--- a/src/ana/inter.c
+++ b/src/ana/inter.c
@@ -23,17 +23,12 @@ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 /* Output from p2c, the Pascal-to-C translator */
 /* From input file "inter.text" */
 
-
-
-
 #include <utils/p2c.h>
 
-
 #define INTER_G
 #include "ana/inter.h"
 #include "node.h"
 
-
 static void log_histinit_32(log_action_t *Globals, int Voltage)
 {
   if (Voltage) {
@@ -586,7 +581,7 @@ static void log_history_32(log_action_t *Globals, int Voltage)
 }
 
 
-static void log_histval_32(log_action_t *Globals, int Voltage)
+static void log_histval_32(log_action_t *Globals, int __attribute__((unused)) Voltage)
 {
 	switch (Globals->actgattr[AnaH_Method - 1].UU.nv)
 	{
@@ -693,9 +688,7 @@ static void log_histstr_32(log_action_t *Globals, int Voltage)
 #undef Value
 #undef Slope
 
-
-
-static void log_configchhist_32(log_action_t *Globals, int voltage)
+static void log_configchhist_32(log_action_t *Globals, int __attribute__((unused)) voltage)
 {
   Globals->actflag = true;
   switch (Globals->actx) {
@@ -736,7 +729,7 @@ static void log_configchhist_32(log_action_t *Globals, int voltage)
 
 
 
-static void log_confighist_32(log_action_t *Globals, int voltage)
+static void log_confighist_32(log_action_t *Globals, int __attribute__((unused)) voltage)
 {
   if (!Globals->histactive && !Globals->actgattr[AnaH_Present - 1].blnk) {
     Globals->actgattr[AnaH_Present - 1].blnk = true;
diff --git a/src/ana/numbers.c b/src/ana/numbers.c
index 458dc29..393d46c 100644
--- a/src/ana/numbers.c
+++ b/src/ana/numbers.c
@@ -23,13 +23,10 @@ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 /* Output from p2c, the Pascal-to-C translator */
 /* From input file "tools.text" */
 
-
-
 #include <utils/p2c.h>
 #include "ana/numbers.h"
 #include "log_action.h"
 
-
 #define TitleX          (-80)
 #define InfoX           (-49)
 #define Line1Y          41
@@ -41,7 +38,6 @@ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 #define GateName        "anaLOG status"
 
-
 typedef struct NumbersConst {
   char OldMessScoreboard[256], OldMessNode[256], OldMessGate1[256],
        OldMessGate2[256], OldMessGate3[256], OldMessGate4[256],
@@ -332,7 +328,7 @@ static void Readgate_Numbers(Analog_32_action *act)
 }
 
 
-static void Writegate_Numbers(Analog_32_action *act)
+static void Writegate_Numbers(Analog_32_action __attribute__((unused)) *act)
 {
   fprintf(*AnaLogglobals->actfile, "%s\n", AnaErase ? " TRUE" : "FALSE");
   fprintf(*AnaLogglobals->actfile, "%s\n", AnaExact ? " TRUE" : "FALSE");
@@ -929,11 +925,9 @@ static void Dispose_Numbers(Analog_32_action *act)
 }
 
 
-static void Touch_Numbers(Analog_32_action *act)
+static void Touch_Numbers(Analog_32_action __attribute__((unused)) *act)
 {
-  log_action_t *WITH;
-
-  WITH = AnaLogglobals;
+  log_action_t *WITH = AnaLogglobals;
   if (WITH->actx >= -2 && WITH->actx <= 2 && WITH->actx <= 5 && WITH->actx >= -5)
     return;
   WITH->actflag = true;
@@ -965,7 +959,7 @@ static void Touch_Numbers(Analog_32_action *act)
 }
 
 
-static void Probe_Numbers(Analog_32_action *act)
+static void Probe_Numbers(Analog_32_action __attribute__((unused)) *act)
 {
   char dtstr[256];
   char STR2[264]; // Attention pas sûr que ce correctif soit bien
-- 
GitLab