util: fix no-op macro (bad number of arguments)
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 23 Jul 2019 09:03:26 +0000 (10:03 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 24 Jul 2019 08:13:58 +0000 (09:13 +0100)
Fixes: b8e077daee4d6369d774 ("util: no-op __builtin_types_compatible_p() for non-GCC compilers")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/u_vector.h

index 6807748e3b10b51d9c65a9a364d3e1e65f1befb7..95f35c59c7dd8726bc73f158ab98c1baab6eb023 100644 (file)
@@ -81,7 +81,7 @@ u_vector_finish(struct u_vector *queue)
 }
 
 #ifndef __GNUC__
-#define __builtin_types_compatible_p(x) 1
+#define __builtin_types_compatible_p(t1, t2) 1
 #endif
 
 #define u_vector_foreach(elem, queue)                                  \