[MPlayer-dev-eng] [PATCH] Fix building with Clang

Brad Smith brad at comstyle.com
Fri Dec 10 08:48:50 EET 2021


Fix building with Clang.


./stream/stream.h:322:46: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
  mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%"PRIX64"\n", pos);
                                             ^

./stream/stream.h:326:49: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
           "Invalid seek to negative position %"PRIx64"!\n", pos);
                                                ^

Index: stream/stream.h
===================================================================
--- stream/stream.h	(revision 38327)
+++ stream/stream.h	(working copy)
@@ -319,11 +319,11 @@
 static inline int stream_seek(stream_t *s, int64_t pos)
 {
 
-  mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%"PRIX64"\n", pos);
+  mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%" PRIX64 "\n", pos);
 
   if (pos < 0) {
     mp_msg(MSGT_DEMUX, MSGL_ERR,
-           "Invalid seek to negative position %"PRIx64"!\n", pos);
+           "Invalid seek to negative position %" PRIx64 "!\n", pos);
     pos = 0;
   }
   if (s->buf_len == 0 && s->pos == pos)


More information about the MPlayer-dev-eng mailing list