aboutsummaryrefslogtreecommitdiff
path: root/windows/nDPI.vcxproj
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-02-13 11:19:11 +0100
committerGitHub <noreply@github.com>2023-02-13 11:19:11 +0100
commita3a9a72f31401b83a264e64cc2f2190dffdfb380 (patch)
tree5636e74bee4e994f90173867116ce629c9aaa5f3 /windows/nDPI.vcxproj
parent85bab9e660fbffbc8b4ba09b721e6797a489dbf6 (diff)
Fix compilation with GCC-7 and latest RoaringBitmap code (#1886)
Latest RoaringBitmap version (introduced with bf413afb) triggers a new warning with GCC-7: ``` ivan@ivan-Latitude-E6540:~/svnrepos/nDPI(dev)$ CC=gcc-7 CXX=g++-7 ./autogen.sh && make -s autoreconf: Entering directory `.' [...] third_party/src/roaring.c:1815:1: warning: ‘no_sanitize’ attribute directive ignored [-Wattributes] static inline int array_container_cardinality(const array_container_t *array) { ^~~~~~ third_party/src/roaring.c:1964:5: warning: ‘no_sanitize’ attribute directive ignored [-Wattributes] const array_container_t *container2) { [..] ``` The core issue is that `no_sanitize` attribute is defined only for GCC >= 8. That breaks the CI since we still use GCC-7 and `-Werror`: add a simple workaround. Fix compilation on Windows
Diffstat (limited to 'windows/nDPI.vcxproj')
-rw-r--r--windows/nDPI.vcxproj1
1 files changed, 1 insertions, 0 deletions
diff --git a/windows/nDPI.vcxproj b/windows/nDPI.vcxproj
index 5b8c7d7f4..f0bf2ff80 100644
--- a/windows/nDPI.vcxproj
+++ b/windows/nDPI.vcxproj
@@ -203,6 +203,7 @@
<ClCompile Include="..\src\lib\protocols\z3950.c" />
<ClCompile Include="..\src\lib\protocols\zabbix.c" />
<ClCompile Include="..\src\lib\third_party\src\ahocorasick.c" />
+ <ClCompile Include="..\src\lib\third_party\src\roaring.c" />
<ClCompile Include="..\src\lib\protocols\armagetron.c" />
<ClCompile Include="..\src\lib\protocols\bgp.c" />
<ClCompile Include="..\src\lib\protocols\bittorrent.c" />