mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Remove warning: C++11 requires a space between string literal and macro (#874)
On Ubuntu 17.04, the default gcc compiler version is 6.3.0. It switch standard from c++98 to c++11. So it would generate verbose warnings.
This commit is contained in:
parent
a58874178b
commit
815d50f00a
32 changed files with 114 additions and 114 deletions
|
@ -190,7 +190,7 @@ int SrsMp4Box::discovery(SrsBuffer* buf, SrsMp4Box** ppbox)
|
|||
// Only support 31bits size.
|
||||
if (largesize > 0x7fffffff) {
|
||||
ret = ERROR_MP4_BOX_OVERFLOW;
|
||||
srs_error("MP4 discovery overflow 31bits, size=%"PRId64". ret=%d", largesize, ret);
|
||||
srs_error("MP4 discovery overflow 31bits, size=%" PRId64 ". ret=%d", largesize, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ int SrsMp4Box::encode_header(SrsBuffer* buf)
|
|||
// Only support 31bits size.
|
||||
if (sz() > 0x7fffffff) {
|
||||
ret = ERROR_MP4_BOX_OVERFLOW;
|
||||
srs_error("MP4 box size overflow 31bits, size=%"PRId64". ret=%d", sz(), ret);
|
||||
srs_error("MP4 box size overflow 31bits, size=%" PRId64 ". ret=%d", sz(), ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -430,7 +430,7 @@ int SrsMp4Box::decode_header(SrsBuffer* buf)
|
|||
// Only support 31bits size.
|
||||
if (sz() > 0x7fffffff) {
|
||||
ret = ERROR_MP4_BOX_OVERFLOW;
|
||||
srs_error("MP4 box size overflow 31bits, size=%"PRId64". ret=%d", sz(), ret);
|
||||
srs_error("MP4 box size overflow 31bits, size=%" PRId64 ". ret=%d", sz(), ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue