Skip to content

Commit 69f5dfe

Browse files
committed
PROTON-2143: Get rid of Windows linkage warnings
1 parent b9ea52d commit 69f5dfe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

c/tests/fuzz/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pn_add_fuzz_test (fuzz-message-decode fuzz-message-decode.c)
5757

5858
# pn_url_parse is not in proton core and is only used by messenger so compile specially
5959
pn_add_fuzz_test (fuzz-url fuzz-url.c ${PN_C_SOURCE_DIR}/extra/url.c ${PN_C_SOURCE_DIR}/core/util.c)
60+
target_compile_definitions(fuzz-url PRIVATE PROTON_DECLARE_STATIC)
6061

6162
# This regression test can take a very long time so don't run by default
6263
if(HAS_PROACTOR AND FUZZ_LONG_TESTS)

python/setup.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,5 +326,5 @@ setup(name='python-qpid-proton',
326326
# Configure class above
327327
ext_modules=[Extension('_cproton',
328328
sources=['cproton_wrap.c'],
329-
extra_compile_args=['-pthread'],
329+
extra_compile_args=['-pthread', '-DPROTON_DECLARE_STATIC'],
330330
libraries=['qpid-proton-core'])])

0 commit comments

Comments
 (0)