Skip to content
Snippets Groups Projects
Commit bb01f20e authored by Brad King's avatar Brad King
Browse files

librhash: Disable warnings to avoid changing 3rd party code

Add '-w' or equivalent flag on compilers supporting it.
Tell MSVC to use its lowest warning level inside librhash sources.
parent 31bb727f
No related branches found
No related tags found
No related merge requests found
project(librhash C)
# Disable warnings to avoid changing 3rd party code.
if(CMAKE_C_COMPILER_ID MATCHES
"^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
endif()
set(librhash_sources
librhash/algorithms.c
librhash/algorithms.h
......
......@@ -5,6 +5,10 @@
/* Include KWSys Large File Support configuration. */
#include <cmsys/Configure.h>
#if defined(_MSC_VER)
# pragma warning(push,1)
#endif
#if _MSC_VER >= 1300
# define int64_t __int64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment