AWS SDK for C++  1.8.95
AWS SDK for C++
UnreferencedParam.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 // taken from http://stackoverflow.com/questions/3020584/avoid-warning-unreferenced-formal-parameter, ugly but avoids having to #include the definition of an unreferenced struct/class
9 
10 #if defined (_MSC_VER)
11 
12  #define AWS_UNREFERENCED_PARAM(x) (&reinterpret_cast<const int &>(x))
13 
14 #else
15 
16  #define AWS_UNREFERENCED_PARAM(x) ((void)(x))
17 
18 #endif // _MSC_VER