]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sg_inlines.h
Add an SG_UNUSED macro to SimGear.
[simgear.git] / simgear / sg_inlines.h
index 399c4bc1ebd86d17a8172f183db639782f19af79..04df945e461067acfd76ebd97f4514bb47eb8efa 100644 (file)
@@ -100,4 +100,7 @@ inline void SG_NORMALIZE_RANGE( T &val, const T min, const T max ) {
     while( val < min ) val += step;
 }
 
+// avoid an 'unused parameter' compiler warning.
+#define SG_UNUSED(x) (void)x
+
 #endif // _SG_INLINES_H