Merge pull request #3528 from BrzVlad/fix-sgen-check-before-collections
[mono.git] / mono / metadata / lock-tracer.c
index f0d2bca6ed49d12a513f5356d770a9790b2e53f3..66f7d6b560d084cac2f07ffc20249e62b699c8f9 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "lock-tracer.h"
 
-
 /*
  * This is a very simple lock trace implementation. It can be used to verify that the runtime is
  * correctly following all locking rules.
@@ -141,5 +140,9 @@ mono_locks_lock_released (RuntimeLocks kind, gpointer lock)
 {
        add_record (RECORD_LOCK_RELEASED, kind, lock);
 }
-
-#endif
+#else
+       #ifdef _MSC_VER
+               // Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty.
+               void __mono_win32_lock_tracer_quiet_lnk4221(void) {}
+       #endif
+#endif /* LOCK_TRACER */