Innomatix Support / InnomatixSupport
Revision:
8:a6311d40c5a2
Parent:
1:c7920c8bc557
Child:
10:5fbe72ffb725
--- a/InnomatixMeta.h	Thu Sep 29 15:07:09 2016 +0000
+++ b/InnomatixMeta.h	Fri Sep 30 17:08:29 2016 +0000
@@ -15,19 +15,15 @@
 #define _INNOMATIX_META_H
 
 
-// These macros serve two purposes
-// 1) The string portion of the macros provide tags that allow the
-//    InnomatixData host to locate useful strings within the
-//    compiled binary.  The strings will be used to assist with
-//    system configuration and revision control
-// 2) The assignment to "p" ensures that the strings are actually
-//    used which ensures that they are not optimized out by the compiler
-//
-static const char *p = 0;
-#define TFMETA( tag, str )    p = "<TFMETA>" tag "=" str "</TFMETA>"
+// These macros provide tags that allow the InnomatixData host to locate useful
+//  strings within the compiled binary.  The strings will be used to assist with
+//  system configuration and revision control
+#define TFMETA( tag, str )    "<TFMETA>" tag "=" str "</TFMETA>"
 
 // This metadata is used by the InnomatixData host to identify this as an MBED binary
-static const char *platform = TFMETA( "TYPE", "LPC1768" );
+// Use the __attribute__((unused)) to supress the "unused variable" warning
+static const char *platform __attribute__((unused)) = TFMETA( "TYPE", "LPC1768" );
+
 
 
 // The InnomatixData host requires the VERSION and DESC metadata values.