Skip to content
Snippets Groups Projects
Commit 7bad1d95 authored by Stephan Schulz's avatar Stephan Schulz
Browse files

support clang for known_unused

parent f6763476
No related branches found
No related tags found
2 merge requests!10Feature/fix warnings,!8Refactor
Pipeline #47704 canceled
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
...@@ -30,7 +30,20 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -30,7 +30,20 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ALL_DEFINES_HEADER_INCLUDED #ifndef ALL_DEFINES_HEADER_INCLUDED
#define ALL_DEFINES_HEADER_INCLUDED #define ALL_DEFINES_HEADER_INCLUDED
// TODO change this depending on the compiler! #if defined (__clang__)
#define known_unused __attribute__((unused)) #define known_unused __attribute__((unused))
#elif defined(__GNUC__) || defined(__GNUG__)
#define known_unused __attribute__((unused))
#elif defined(_MSC_VER)
#warning "The Microsoft compilers are not supported."
#define known_unused
#else
#warning "Unknown compilers are not supported."
#define known_unused
#endif
#endif//ALL_DEFINES_HEADER_INCLUDED #endif//ALL_DEFINES_HEADER_INCLUDED
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment