Browse Source

test: suppress warnings

Michele Caini 1 year ago
parent
commit
4a681e4d00
1 changed files with 2 additions and 2 deletions
  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};
     char j{'c'};
 
-    int f(int) const {
+    [[nodiscard]] int f(int) const {
         return i;
     }
 
-    char g(char) const {
+    [[nodiscard]] char g(char) const {
         return j;
     }
 };