Error: Spaces are literal!

Yet another interesting error. This time, the problem is that it needs spaces between the “literal and identifier”. Take a look:

[CODE]
hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:22: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:32: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:42: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:52: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:62: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:72: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,

[/CODE]

So, I changed them to be:

[CODE]
ALOGD(“%” PRId64″ %” PRId64″ %” PRId64″ %” PRId64″ %” PRId64″ %” PRId64,
[/CODE]

And now the error has been silenced! I really like it when the problem is easy to identify and solve!

Linux – keep it simple.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s