Skip to content

Commit

Permalink
mutex.cpp: avoid warning about -Wzero-as-null-pointer-constant with c…
Browse files Browse the repository at this point in the history
…lang 3.8
  • Loading branch information
rouault committed Aug 9, 2019
1 parent 740be1b commit e11ca45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ void pj_cleanup_lock()
#include "pthread.h"

#ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
static pthread_mutex_t core_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
#else
Expand Down

0 comments on commit e11ca45

Please sign in to comment.