Explorar el Código

riscv64: fix compiler warning

Waldemar Brodkorb hace 1 mes
padre
commit
bb54f5f4e7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      test/tls/tls-macros-riscv.h

+ 1 - 0
test/tls/tls-macros-riscv.h

@@ -17,6 +17,7 @@
 
 #define TLS_GD(x)                                       \
         ({ void *__result;                              \
+	extern void *__tls_get_addr (void *);           \
         asm ("la.tls.gd %0, " #x "\n\t"                 \
              : "=r" (__result));                        \
         __tls_get_addr (__result); })