Couple more warning fixes
authorSteve Youngs <steve@sxemacs.org>
Fri, 18 Mar 2011 23:19:41 +0000 (09:19 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 18 Mar 2011 23:19:41 +0000 (09:19 +1000)
* src/media/sound-jack.c (sound_jack_shutdown_cbfun): Use %p mask
to prevent compiler warning.

* src/media/media.c (__add_prop): Drop the artificial attribute to
prevent a compiler warning.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
src/media/media.c
src/media/sound-jack.c

index 9777433..78dcda8 100644 (file)
@@ -826,7 +826,7 @@ Return a list of input formats in the underlying media libraries.
        return formats;
 }
 
-static inline void __attribute__((always_inline, artificial))
+static inline void __attribute__((always_inline))
 __add_prop(Lisp_Object *reslist, Lisp_Object key, Lisp_Object val)
 {
        *reslist = Fcons(Fcons(key, val), *reslist);
index 85b934b..42699aa 100644 (file)
@@ -370,7 +370,7 @@ sound_jack_error(const char *errmsg)
 static void
 sound_jack_shutdown_cbfun(void *arg)
 {
-       JACK_CRITICAL("Shutdown: 0x%x\n", (unsigned int)arg);
+       JACK_CRITICAL("Shutdown: %p\n", arg);
 
        LONGJMP(jack_server_sig, 1);