]> sjero.net Git - linphone/blobdiff - gtk/logging.c
Aac-eld add missing header according to RFC3640 3.3.6
[linphone] / gtk / logging.c
index e2a9da600a8b118d4fc4f2337fe0317c61f27c77..26027251f6aad830a5bea120bd2a3fe621ff8536 100644 (file)
@@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <sys/stat.h>
 #include <sys/types.h>
 #endif
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 
 extern gchar *linphone_logfile;
 
@@ -206,6 +207,7 @@ static void linphone_gtk_log_file(OrtpLogLevel lev, const char *msg)
                 case of a crash (which is one of the main reasons we have a
                     log facility in the first place). */
                fprintf(outlog, "[%s] [%s] %s\n", date, lname, msg);
+               fflush(outlog);
        }
 }