]> Repos - portaudio/commitdiff
Add stub to pa_trace.c to eliminate warning.
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 17 Jan 2014 03:45:15 +0000 (03:45 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 17 Jan 2014 03:45:15 +0000 (03:45 +0000)
"make install" was causing a warning if PA_TRACE_REALTIME_EVENTS
was not defined.

src/common/pa_trace.c

index 40fbc048ab448af6431f8fbb2be8a0c271b5a462..818abffbeecebbb19af357adf3bc2f974e4b90ed 100644 (file)
@@ -227,4 +227,12 @@ void PaUtil_DiscardHighSpeedLog( LogHandle hLog )
     PaUtil_FreeMemory(pLog);
 }
 
+#else
+/* This stub was added so that this file will generate a symbol.
+ * Otherwise linker/archiver programs will complain.
+ */
+int PaUtil_TraceStubToSatisfyLinker(void)
+{
+       return 0;
+}
 #endif /* TRACE_REALTIME_EVENTS */