Skip to content

Commit 812cfe0

Browse files
committed
Remove warnings only on Windows
1 parent ba23fdb commit 812cfe0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,16 @@ jobs:
108108
- name: build_libzmq_cmake
109109
if: ${{ matrix.libzmqbuild == 'cmake' }}
110110
run: |
111+
if [[ ! ${{ matrix.os }} = 'windows' ]]
112+
then
113+
export CMAKE_CXX_FLAGS="-Wno-error=stringop-truncation -Wno-stringop-overflow"
114+
export CMAKE_C_FLAGS="-Wno-error=stringop-truncation -Wno-stringop-overflow"
115+
fi
111116
cmake -Hlibzmq-${{ matrix.libzmq }} -Blibzmq-build ${{ matrix.platform}} \
112117
-DWITH_PERF_TOOL=OFF \
113118
-DZMQ_BUILD_TESTS=OFF \
114119
-DCMAKE_BUILD_TYPE=Release \
115-
-DENABLE_DRAFTS=${{ matrix.drafts }} \
116-
-DCMAKE_CXX_FLAGS="-Wno-error=stringop-truncation -Wno-stringop-overflow" \
117-
-DCMAKE_C_FLAGS="-Wno-error=stringop-truncation -Wno-stringop-overflow"
120+
-DENABLE_DRAFTS=${{ matrix.drafts }}
118121
cmake --build libzmq-build --config ${BUILDTYPE} -j ${THREADS}
119122
echo "LIBZMQ=${PWD}/libzmq-build" >> ${GITHUB_ENV}
120123

0 commit comments

Comments
 (0)