[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] suppress a warning about context ID.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:24:28 JST 2012


Kouhei Sutou	2011-06-09 10:36:31 +0900 (Thu, 09 Jun 2011)

  New Revision: e0ca4294df391dbe9c9bbdce87a38b88cc0ecfe0
  https://github.com/mroonga/mroonga/commit/e0ca4294df391dbe9c9bbdce87a38b88cc0ecfe0

  Log:
    suppress a warning about context ID.
    
    Based on patch by @issm. Thanks!!!

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-06-09 03:21:43 +0900 (cb22fd5)
+++ ha_mroonga.cc    2011-06-09 10:36:31 +0900 (6c7edda)
@@ -116,7 +116,7 @@ void mrn_logger_func(int level, const char *time, const char *title,
   if (mrn_logfile_opened) {
     pthread_mutex_lock(&mrn_log_mutex);
     fprintf(mrn_logfile, "%s|%c|%08x|%s\n", time,
-            *(slev + level), pthread_self(), msg);
+            *(slev + level), (uint)(ulong)pthread_self(), msg);
     fflush(mrn_logfile);
     pthread_mutex_unlock(&mrn_log_mutex);
   }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index