Explorar el Código

test: suppress warnings

Michele Caini hace 1 año
padre
commit
4a681e4d00
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      test/entt/meta/meta_custom.cpp

+ 2 - 2
test/entt/meta/meta_custom.cpp

@@ -12,11 +12,11 @@ struct clazz {
     int i{2};
     int i{2};
     char j{'c'};
     char j{'c'};
 
 
-    int f(int) const {
+    [[nodiscard]] int f(int) const {
         return i;
         return i;
     }
     }
 
 
-    char g(char) const {
+    [[nodiscard]] char g(char) const {
         return j;
         return j;
     }
     }
 };
 };