2 Коміти 4a8ef9abb1 ... 3576e3ef31

Автор SHA1 Опис Дата
  Kajetan Johannes Hammerle 3576e3ef31 Update valgrind suppressions 3 місяців тому
  Kajetan Johannes Hammerle 272a10359a Update cleanup 3 місяців тому
4 змінених файлів з 13 додано та 28 видалено
  1. 1 8
      CMakeLists.txt
  2. 2 10
      src/Network.c
  3. 2 2
      tasks
  4. 8 8
      valgrind.supp

+ 1 - 8
CMakeLists.txt

@@ -39,13 +39,6 @@ endif()
 
 if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
     include("cmake/gcc_warnings.cmake")
-    set(DEFINITIONS ${DEFINITIONS}
-        bool=_Bool
-        true=1
-        false=0
-        nullptr=0
-        static_assert=_Static_assert
-    )
 elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")
     include("cmake/clang_warnings.cmake")
 endif()
@@ -69,7 +62,7 @@ target_include_directories(gaming_core SYSTEM
     PUBLIC stb
     PUBLIC glfw/include
 )
-target_link_directories(gaming_core SYSTEM
+target_link_directories(gaming_core
     PUBLIC ${CMAKE_INSTALL_PREFIX}/lib
 )
 target_sources(gaming_core PUBLIC

+ 2 - 10
src/Network.c

@@ -141,19 +141,11 @@ void writeOutPacketU32(OutPacket* out, u32 u) {
 }
 
 void writeOutPacketI8(OutPacket* out, i8 i) {
-    if(i < 0) {
-        writeOutPacketU8(out, (u8)((i32)i + (i32)128));
-    } else {
-        writeOutPacketU8(out, (u8)((u32)i + (u32)128));
-    }
+    writeOutPacketU8(out, (u8)((i32)i + (i32)128));
 }
 
 void writeOutPacketI16(OutPacket* out, i16 i) {
-    if(i < 0) {
-        writeOutPacketU16(out, (u16)((i32)i + (i32)32768));
-    } else {
-        writeOutPacketU16(out, (u16)((u32)i + (u32)32768));
-    }
+    writeOutPacketU16(out, (u16)((i32)i + (i32)32768));
 }
 
 void writeOutPacketI32(OutPacket* out, i32 i) {

+ 2 - 2
tasks

@@ -184,7 +184,7 @@ if $coverage; then
             --exclude-lines-by-pattern ".*CoverageIgnore.*"
     else
         files=$(find build_debug -name *.profraw)
-        llvm-profdata-16 merge -sparse $files -o build_debug/default.profdata
-        llvm-cov-16 show ./build_debug/test -instr-profile=build_debug/default.profdata --ignore-filename-regex="(test/)|(WindowManager.c)" -line-coverage-lt=100
+        llvm-profdata-17 merge -sparse $files -o build_debug/default.profdata
+        llvm-cov-17 show ./build_debug/test -instr-profile=build_debug/default.profdata --ignore-filename-regex="(test/)|(WindowManager.c)" -line-coverage-lt=100
     fi
 fi

+ 8 - 8
valgrind.supp

@@ -70,45 +70,45 @@
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libcairo.so.2.11600.0
+  obj:/usr/lib/x86_64-linux-gnu/libcairo.so.2.11800.0
 }
 {
   libpangocairo font stuff
   Memcheck:Leak
-  match-leak-kinds: reachable
+  match-leak-kinds: reachable,possible
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.5000.12
+  obj:/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.5400.0
 }
 {
   libpango font stuff
   Memcheck:Leak
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5000.12
+  obj:/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5400.0
 }
 {
   libexpat font stuff
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libexpat.so.1.8.10
+  obj:/usr/lib/x86_64-linux-gnu/libexpat.so.1.9.2
 }
 {
   libfontconfig font stuff
   Memcheck:Leak
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.0
+  obj:/usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.1
 }
 {
   libharfbuzz font stuff
   Memcheck:Leak
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.60000.0
+  obj:/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.60830.0
 }
 {
   libfreetype font stuff
   Memcheck:Leak
   ...
-  obj:/usr/lib/x86_64-linux-gnu/libfreetype.so.6.18.3
+  obj:/usr/lib/x86_64-linux-gnu/libfreetype.so.6.20.1
 }
 {
   libgobject 1