gcc 2.95 compatibility, take 2
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Sep 2004 23:34:25 +0000 (23:34 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 16 Sep 2004 23:34:25 +0000 (23:34 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@208 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac
polyp/cpulimit-test.c
polyp/log.h
polyp/polyplib-introspect.h
polyp/source.h
polyp/tagstruct.c
polyp/util.c

index 8b5a72a..5239db1 100644 (file)
@@ -104,12 +104,13 @@ AC_SUBST(GLIB12_LIBS)
 AC_SUBST(HAVE_GLIB12)
 AM_CONDITIONAL([HAVE_GLIB12], [test "x$HAVE_GLIB12" = x1])
 
-# If using GCC specifiy some additional parameters
+# If using GCC specify some additional parameters
 if test "x$GCC" = "xyes" ; then
    CFLAGS="$CFLAGS -pipe -W -Wall -pedantic"
 
-   AC_LANG_CONFTEST([int main()])
-   $CC -std=c99 -Wno-unused-parameter -E conftest.c -o - > /dev/null 2>&1 && CFLAGS="$CFLAGS -std=c99 -Wno-unused-parameter"
+   AC_LANG_CONFTEST([int main() {}])
+   $CC -c conftest.c -std=c99 -Wno-unused-parameter $CFLAGS > /dev/null 2> /dev/null && CFLAGS="$CFLAGS -std=c99 -Wno-unused-parameter"
+   rm -f conftest.o
 fi
 
 # LYNX documentation generation
index 71c06ef..d1faf92 100644 (file)
@@ -80,5 +80,6 @@ int main() {
     pa_cpu_limit_done();
     
     pa_mainloop_free(m);
-    
+
+    return 0;
 }
index 1f2c74e..46a8649 100644 (file)
@@ -6,7 +6,7 @@
 enum pa_log_target {
     PA_LOG_SYSLOG,
     PA_LOG_STDERR,
-    PA_LOG_USER,
+    PA_LOG_USER
 };
 
 void pa_log_set_ident(const char *p);
index 28c51fe..9e6c31b 100644 (file)
@@ -229,7 +229,7 @@ struct pa_operation* pa_context_unload_module(struct pa_context *c, uint32_t ind
 /** Type of an autoload entry. \since 0.5 */
 enum pa_autoload_type {
     PA_AUTOLOAD_SINK = 0,
-    PA_AUTOLOAD_SOURCE = 1,
+    PA_AUTOLOAD_SOURCE = 1
 };
 
 /** Stores information about autoload entries. \since 0.5 */
index b626283..cda9e69 100644 (file)
@@ -36,7 +36,7 @@ struct pa_source;
 
 enum pa_source_state {
     PA_SOURCE_RUNNING,
-    PA_SOURCE_DISCONNECTED,
+    PA_SOURCE_DISCONNECTED
 };
 
 struct pa_source {
index 52db0fe..d571b71 100644 (file)
@@ -46,7 +46,7 @@ enum tags {
     TAG_BOOLEAN_TRUE = '1',
     TAG_BOOLEAN_FALSE = '0',
     TAG_TIMEVAL = 'T',
-    TAG_USEC = 'U',  /* 64bit unsigned */
+    TAG_USEC = 'U'  /* 64bit unsigned */
 };
 
 struct pa_tagstruct {
index bb71bbf..24773a7 100644 (file)
@@ -385,7 +385,7 @@ char *pa_split(const char *c, const char *delimiter, const char**state) {
     *state = current+l;
 
     if (**state)
-        *state++;
+        (*state)++;
 
     return pa_xstrndup(current, l);
 }