Browse Source

enet fixes, stronger ecs remove test

Kajetan Johannes Hammerle 2 years ago
parent
commit
aa538d06ff
3 changed files with 4 additions and 7 deletions
  1. 1 1
      enet
  2. 0 6
      network/ENet.h
  3. 3 0
      tests/ComponentsTests.cpp

+ 1 - 1
enet

@@ -1 +1 @@
-Subproject commit 808b96a7fb0790456b282760a0f22dd152aa94bf
+Subproject commit 803590c48ff202ae7865c9b88894518f1bd8f190

+ 0 - 6
network/ENet.h

@@ -1,13 +1,7 @@
 #ifndef ENET_H
 #define ENET_H
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#pragma GCC diagnostic ignored "-Wpragmas"
-#pragma GCC diagnostic ignored "-Wextra"
-#pragma GCC diagnostic ignored "-Wpedantic"
 #include "enet/include/enet.h"
-#pragma GCC diagnostic pop
 
 class ENet final {
     friend class Client;

+ 3 - 0
tests/ComponentsTests.cpp

@@ -45,6 +45,9 @@ static void testRemove(Test& test) {
     c.remove(5);
     c.remove(30);
 
+    c.add(20, 40);
+    c.remove(20);
+
     int* i1 = c.search(1);
     int* i2 = c.search(5);
     int* i3 = c.search(10);