From b0d1c0220b99e86db5b13e51c6f39b91e9859dc9 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 31 Mar 2016 14:24:54 -0400 Subject: [PATCH] Supress unused variable warnings for clang --- src/AS_global.H | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AS_global.H b/src/AS_global.H index e01795de3..03d2e0603 100644 --- a/src/AS_global.H +++ b/src/AS_global.H @@ -278,6 +278,7 @@ int AS_configure(int argc, char **argv); static void omp_set_dynamic(int x) { + #pragma unused(x) } static @@ -289,6 +290,7 @@ omp_get_max_threads(void) { static void omp_set_num_threads(int x) { + #pragma unused(x) } static @@ -308,21 +310,25 @@ typedef int omp_lock_t; static void omp_init_lock(omp_lock_t *a) { + #pragma unused(a) } static void omp_set_lock(omp_lock_t *a) { + #pragma unused(a) } static void omp_unset_lock(omp_lock_t *a) { + #pragma unused(a) } static void omp_destroy_lock(omp_lock_t *a) { + #pragma unused(a) } #endif