]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_create.c
Fix warnings
[pdclib] / opt / nothread / tss_create.c
index 4b8ce168074f5196fc2a32c7e9c42c61813b8737..7faa4f9f72637a4ffa99cf539c6a1459989d34af 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int tss_create(tss_t *key, tss_dtor_t dtor)\r
@@ -5,4 +6,16 @@ int tss_create(tss_t *key, tss_dtor_t dtor)
        key->self  = key;\r
        key->value = NULL;\r
        return thrd_success;\r
-}
\ No newline at end of file
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+/* Tested in tss_get.c */\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif\r