[xiph-commits] r2895 - in liboggplay/trunk/plugin: . mac/liboggplay.xcodeproj

tahn at svn.annodex.net tahn at svn.annodex.net
Tue Jun 12 18:37:54 PDT 2007


Author: tahn
Date: 2007-06-12 18:37:53 -0700 (Tue, 12 Jun 2007)
New Revision: 2895

Modified:
   liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj
   liboggplay/trunk/plugin/plugin_oggplay.c
   liboggplay/trunk/plugin/plugin_playlist.c
Log:
Enabled missing prototypes warning in Xcode, and removed warnings resulting from this.


Modified: liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj
===================================================================
--- liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj	2007-06-13 01:36:16 UTC (rev 2894)
+++ liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj	2007-06-13 01:37:53 UTC (rev 2895)
@@ -359,6 +359,7 @@
 					USE_AUDIO,
 				);
 				GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 				GCC_WARN_SIGN_COMPARE = YES;
 				GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
 				GCC_WARN_UNINITIALIZED_AUTOS = YES;
@@ -405,6 +406,7 @@
 					USE_AUDIO,
 				);
 				GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 				GCC_WARN_SIGN_COMPARE = YES;
 				GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
 				GCC_WARN_UNINITIALIZED_AUTOS = YES;

Modified: liboggplay/trunk/plugin/plugin_oggplay.c
===================================================================
--- liboggplay/trunk/plugin/plugin_oggplay.c	2007-06-13 01:36:16 UTC (rev 2894)
+++ liboggplay/trunk/plugin/plugin_oggplay.c	2007-06-13 01:37:53 UTC (rev 2895)
@@ -101,10 +101,10 @@
   do {ogg_int64_t l = (n); l <<= 16; l /= (d); *(o) = l;} while (0)
 
 #if defined(XP_UX) || defined(XP_MACOSX)
-void *
+static void *
 decoding_thread(void *handle) {
 #elif defined(XP_WIN)
-DWORD WINAPI
+static DWORD WINAPI
 decoding_thread(void *handle) {
 #endif
 

Modified: liboggplay/trunk/plugin/plugin_playlist.c
===================================================================
--- liboggplay/trunk/plugin/plugin_playlist.c	2007-06-13 01:36:16 UTC (rev 2894)
+++ liboggplay/trunk/plugin/plugin_playlist.c	2007-06-13 01:37:53 UTC (rev 2895)
@@ -39,7 +39,7 @@
 /**
  * Private functions for management of list elements 
  */
-void 
+static void
 shift_up(PluginPlaylist *playlist, unsigned int start_pos, unsigned int end_pos) {
   unsigned int i, j;  
   if (playlist->data == NULL) 
@@ -53,7 +53,7 @@
   } 
 }
 
-void 
+static void
 shift_down(PluginPlaylist *playlist, unsigned int start_pos, unsigned int end_pos) {
   unsigned int i, j;
   if (playlist->data == NULL) 
@@ -147,7 +147,7 @@
   unsigned int i;
   if (playlist != NULL) {
    for (i = 0; i < playlist->length; i++) {
-     printf("Playlist entry [%d] is : %s\n", i + 1, playlist->data[i]);
+     printf("Playlist entry [%d] is : %s\n", i + 1, (char *)playlist->data[i]);
    }
   }
   return;



More information about the commits mailing list