Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
bbc90388
Unverified
Commit
bbc90388
authored
May 28, 2018
by
Simon Giesecke
Committed by
GitHub
May 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3140 from bluca/clang_tautological
Problem: build broken with clang 6 on Android NDK 17
parents
2d1bb07f
58d13395
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
CMakeLists.txt
CMakeLists.txt
+12
-0
configure.ac
configure.ac
+6
-0
tipc_connecter.cpp
src/tipc_connecter.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
bbc90388
...
...
@@ -35,6 +35,18 @@ if(COMPILER_SUPPORTS_C11)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-std=gnu11"
)
endif
()
if
(
NOT MSVC
)
# clang 6 has a warning that does not make sense on multi-platform code
CHECK_CXX_COMPILER_FLAG
(
"-Wno-tautological-constant-compare"
CXX_HAS_TAUT_WARNING
)
if
(
CXX_HAS_TAUT_WARNING
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-tautological-constant-compare"
)
endif
()
CHECK_C_COMPILER_FLAG
(
"-Wno-tautological-constant-compare"
CC_HAS_TAUT_WARNING
)
if
(
CC_HAS_TAUT_WARNING
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-tautological-constant-compare"
)
endif
()
endif
()
# Will be used to add flags to pkg-config useful when apps want to statically link
set
(
pkg_config_libs_private
""
)
...
...
configure.ac
View file @
bbc90388
...
...
@@ -812,6 +812,12 @@ AM_CONDITIONAL([WITH_CLANG_FORMAT], [$WITH_CLANG_FORMAT])
# unittests will not build without the static libzmq.a
AM_CONDITIONAL(ENABLE_STATIC, test "x$enable_static" = "xyes")
# clang 6 has a warning that does not make sense on multi-platform code
AX_CHECK_COMPILE_FLAG([-Wno-tautological-constant-compare],
[CFLAGS+=" -Wno-tautological-constant-compare" CXXFLAGS+=" -Wno-tautological-constant-compare"],
[],
[-Werror])
# Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS
AC_SUBST(LIBZMQ_EXTRA_CFLAGS)
AC_SUBST(LIBZMQ_EXTRA_CXXFLAGS)
...
...
src/tipc_connecter.cpp
View file @
bbc90388
...
...
@@ -255,7 +255,7 @@ zmq::fd_t zmq::tipc_connecter_t::connect ()
// Following code should handle both Berkeley-derived socket
// implementations and Solaris.
int
err
=
0
;
#if ZMQ_HAVE_VXWORKS
#if
def
ZMQ_HAVE_VXWORKS
int
len
=
sizeof
(
err
);
#else
socklen_t
len
=
sizeof
(
err
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment