This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9878 - Don't let the lamp plugin compile for players without backlight
Attached to Project:
Rockbox
Opened by Alexander Levin (fml2) - Saturday, 07 February 2009, 21:28 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 28 March 2009, 18:00 GMT+2
Opened by Alexander Levin (fml2) - Saturday, 07 February 2009, 21:28 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 28 March 2009, 18:00 GMT+2
|
DetailsThis patch lets the compiler to issue a compile error when the lamp plugin is built for a player without the backlight feature.
Without this patch, the whole file is #ifdef'ed out so that there will be no plugin entry point. The patch makes the compile process fail with a describing error message. |
This task depends upon
Closed by Nils Wallménius (nls)
Saturday, 28 March 2009, 18:00 GMT+2
Reason for closing: Fixed
Additional comments about closing: deleted the check altogether in r 20563
Saturday, 28 March 2009, 18:00 GMT+2
Reason for closing: Fixed
Additional comments about closing: deleted the check altogether in r 20563
Surely it would make more sense to not compile it at all (by ifdeffinng it out of apps/plugins/SOURCES)?
It's ifdeff'ed there. This is just an additional security check.
I don't understand. lamp.c should never be processed...why the "additional security check"?
Yes, lamp.c is ifdeffed out in the SOURCES file. So it might be better to remove the check in the .c file itself. But it contained one. This patch just makes the check better. But, as I said, it could/should be removed alltogether.