Skip to content

Commit

Permalink
Merge pull request #83 from jxtx/clang-unused
Browse files Browse the repository at this point in the history
Supress unused variable warnings for clang.
  • Loading branch information
skoren committed Mar 31, 2016
2 parents 1f0352d + b0d1c02 commit 1f08690
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/AS_global.H
Expand Up @@ -278,6 +278,7 @@ int AS_configure(int argc, char **argv);
static
void
omp_set_dynamic(int x) {
#pragma unused(x)
}

static
Expand All @@ -289,6 +290,7 @@ omp_get_max_threads(void) {
static
void
omp_set_num_threads(int x) {
#pragma unused(x)
}

static
Expand All @@ -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
Expand Down

0 comments on commit 1f08690

Please sign in to comment.