Repository: orc
Updated Branches:
  refs/heads/master fc603524e -> 37b939b53


ORC-105. Fix compilation warnings in C++ libs for MacOS 10.12 Sierra.

Fixes #62.

Signed-off-by: Owen O'Malley <omal...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/orc/repo
Commit: http://git-wip-us.apache.org/repos/asf/orc/commit/37b939b5
Tree: http://git-wip-us.apache.org/repos/asf/orc/tree/37b939b5
Diff: http://git-wip-us.apache.org/repos/asf/orc/diff/37b939b5

Branch: refs/heads/master
Commit: 37b939b53a27240a9b8d20f8ae5f4c65a093ca82
Parents: fc60352
Author: Owen O'Malley <omal...@apache.org>
Authored: Mon Oct 10 09:52:06 2016 -0700
Committer: Owen O'Malley <omal...@apache.org>
Committed: Mon Oct 10 13:49:10 2016 -0700

----------------------------------------------------------------------
 c++/libs/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/orc/blob/37b939b5/c++/libs/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/c++/libs/CMakeLists.txt b/c++/libs/CMakeLists.txt
index e1eb80c..3ae5475 100644
--- a/c++/libs/CMakeLists.txt
+++ b/c++/libs/CMakeLists.txt
@@ -10,6 +10,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+  set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-shift-negative-value")
+  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
+endif ()
+
 add_subdirectory(gmock-${GMOCK_VERSION})
 add_subdirectory(zlib-${ZLIB_VERSION})
 add_subdirectory(protobuf-${PROTOBUF_VERSION})

Reply via email to