Blob Blame History Raw
diff -up ./brmon.c.warning ./brmon.c
--- ./brmon.c.warning	2016-02-15 09:50:33.524977085 -0500
+++ ./brmon.c	2016-02-15 09:53:31.580975481 -0500
@@ -28,7 +28,7 @@
 
 #include "bridge_ctl.h"
 
-static const char SNAPSHOT[] = "v0.1";
+static const char SNAPSHOT[] __attribute__((unused)) = "v0.1";
 
 
 /* RFC 2863 operational status */
diff -up ./rstplib/rolesel.c.warning ./rstplib/rolesel.c
--- ./rstplib/rolesel.c.warning	2016-02-15 09:51:04.682851751 -0500
+++ ./rstplib/rolesel.c	2016-02-15 09:53:06.430269449 -0500
@@ -63,7 +63,7 @@ static void
 setRoleSelected (char* reason, STPM_T* stpm, PORT_T* port,
                 PORT_ROLE_T newRole)
 {
-  char* new_role_name;
+  char* new_role_name __attribute__((unused));
 
   port->selectedRole = newRole;
 
@@ -190,7 +190,9 @@ updtRolesBridge (STATE_MACH_T* this)
 {               /* 17.19.21 */
   register PORT_T* port;
   register STPM_T* stpm;
+#ifdef STP_DBG
   PORT_ID old_root_port; /* for tracing of root port changing */
+#endif
 
   stpm = this->owner.stpm;
 #ifdef STP_DBG