From 59a7c88ecaeb5fbb0873f8aaf081eaa057572806 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 4 Mar 2011 22:41:24 -0600 Subject: Fixed Linux compile warnings in media_plugin_gstreamer010.cpp. Warning was because writeToLog expected a char pointer, but was being given string constants. Exact warning message was: deprecated conversion from string constant to ‘char*’ --- linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linden/indra') diff --git a/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp b/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp index 7e2833a..32c4376 100755 --- a/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp +++ b/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp @@ -84,7 +84,7 @@ public: GstMessage *message); // basic log file writing - static bool writeToLog(char* str, ...); + static bool writeToLog(const char* str, ...); private: std::string getVersion(); @@ -202,7 +202,7 @@ static char* get_gst_state_name(GstState state) #endif // LL_GST_REPORT_STATE_CHANGES // static -bool MediaPluginGStreamer010::writeToLog(char* str, ...) +bool MediaPluginGStreamer010::writeToLog(const char* str, ...) { LLFILE* fp = LLFile::fopen("media_plugin_gstreamer010.log", "a"); -- cgit v1.1