aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-10-29 09:21:12 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2013-10-29 09:21:12 -0700
commitfd76798927ef50bba8f98e49387d8b36b13109e1 (patch)
tree13eb76c787111b50f130e6cd2bc5f8824b9c467a /host/include
parent9d4c14751c7a11d1647db94259fd223685ea507c (diff)
downloaduhd-fd76798927ef50bba8f98e49387d8b36b13109e1.tar.gz
uhd-fd76798927ef50bba8f98e49387d8b36b13109e1.tar.bz2
uhd-fd76798927ef50bba8f98e49387d8b36b13109e1.zip
Removed GCC-specific attribute for unused parameters
* This broke MSVC builds due to incompatibility * Added new UHD_UNUSED(x) macro in <uhd/config.hpp>
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/config.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/include/uhd/config.hpp b/host/include/uhd/config.hpp
index 6fd2932cf..619bd0787 100644
--- a/host/include/uhd/config.hpp
+++ b/host/include/uhd/config.hpp
@@ -55,18 +55,21 @@ typedef ptrdiff_t ssize_t;
#define UHD_INLINE __forceinline
#define UHD_DEPRECATED __declspec(deprecated)
#define UHD_ALIGNED(x) __declspec(align(x))
+ #define UHD_UNUSED(x) x
#elif defined(__GNUG__) && __GNUG__ >= 4
#define UHD_EXPORT __attribute__((visibility("default")))
#define UHD_IMPORT __attribute__((visibility("default")))
#define UHD_INLINE inline __attribute__((always_inline))
#define UHD_DEPRECATED __attribute__((deprecated))
#define UHD_ALIGNED(x) __attribute__((aligned(x)))
+ #define UHD_UNUSED(x) x __attribute__((unused))
#else
#define UHD_EXPORT
#define UHD_IMPORT
#define UHD_INLINE inline
#define UHD_DEPRECATED
#define UHD_ALIGNED(x)
+ #define UHD_UNUSED(x) x
#endif
// Define API declaration macro