diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
commit | cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch) | |
tree | da27775a2161723ef342e91af41a8b51fedef405 /subversion/libsvn_subr/sqlite3wrapper.c | |
parent | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff) | |
download | subversion-tarball-master.tar.gz |
subversion-1.9.7HEADsubversion-1.9.7master
Diffstat (limited to 'subversion/libsvn_subr/sqlite3wrapper.c')
-rw-r--r-- | subversion/libsvn_subr/sqlite3wrapper.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/subversion/libsvn_subr/sqlite3wrapper.c b/subversion/libsvn_subr/sqlite3wrapper.c index 4bbb619..76e182f 100644 --- a/subversion/libsvn_subr/sqlite3wrapper.c +++ b/subversion/libsvn_subr/sqlite3wrapper.c @@ -26,18 +26,19 @@ #ifdef SVN_SQLITE_INLINE # define SQLITE_OMIT_DEPRECATED 1 # define SQLITE_API static -# if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6 || __APPLE_CC__)) -# if !__APPLE_CC__ || __GNUC_MINOR__ >= 6 -# pragma GCC diagnostic push -# endif +# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) # pragma GCC diagnostic ignored "-Wunreachable-code" # pragma GCC diagnostic ignored "-Wunused-function" # pragma GCC diagnostic ignored "-Wcast-qual" # pragma GCC diagnostic ignored "-Wunused" # pragma GCC diagnostic ignored "-Wshadow" -# if __APPLE_CC__ +# if defined(__APPLE_CC__) || defined(__clang__) # pragma GCC diagnostic ignored "-Wshorten-64-to-32" # endif +# if defined(__clang__) +# pragma clang diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers" +# pragma clang diagnostic ignored "-Wmissing-variable-declarations" +# endif # endif # ifdef __APPLE__ # include <Availability.h> @@ -52,9 +53,6 @@ # endif # define SQLITE_DEFAULT_FILE_PERMISSIONS 0666 # include <sqlite3.c> -# if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)) -# pragma GCC diagnostic pop -# endif /* Expose the sqlite API vtable and the two missing functions */ const sqlite3_api_routines *const svn_sqlite3__api_funcs = &sqlite3Apis; |