aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2015-03-19 14:20:08 -0400
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-03-23 13:10:14 +0300
commit9dac6ba2ef349e4fe60bc36684dde462e5c6f464 (patch)
tree57e052fc14f2d489393b614d20889f4b0572e0fa /test
parente917a808d5d770fc9c845f259e90e8780632fa23 (diff)
test: debug: add unused attribute MACRO
Compiler attributes should be used to signify that an unused argument is intentionally unused Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/test_debug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_debug.h b/test/test_debug.h
index 7acfe1608..aec0977d1 100644
--- a/test/test_debug.h
+++ b/test/test_debug.h
@@ -81,6 +81,11 @@ do { \
* @}
*/
+/**
+ * Mark intentionally unused argument for functions
+ */
+#define TEST_UNUSED __attribute__((__unused__))
+
#ifdef __cplusplus
}
#endif