PortaPack: Silence warnings about unused functions/variables I'm liable to use soon.

I don't like the __attribute__((unused)) markup, but woud rather not delete or comment out the code.
This commit is contained in:
Jared Boone
2019-01-09 15:48:59 -08:00
parent e87b3f4fea
commit 07f370bfba

View File

@ -247,11 +247,11 @@ static const uint8_t bitmap_waves_data[] = {
0x00, 0x03, 0x00, 0x03, 0x00, 0x06, 0x30, 0x06, 0x30, 0x06, 0x30, 0x06, 0x60, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x60, 0x0c, 0x30, 0x06, 0x30, 0x06, 0x30, 0x06, 0x00, 0x06, 0x00, 0x03, 0x00, 0x03 0x00, 0x03, 0x00, 0x03, 0x00, 0x06, 0x30, 0x06, 0x30, 0x06, 0x30, 0x06, 0x60, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x63, 0x0c, 0x60, 0x0c, 0x30, 0x06, 0x30, 0x06, 0x30, 0x06, 0x00, 0x06, 0x00, 0x03, 0x00, 0x03
}; };
static const ui_bitmap_t bitmap_waves = { __attribute__((unused)) static const ui_bitmap_t bitmap_waves = {
{ 16, 20 }, bitmap_waves_data { 16, 20 }, bitmap_waves_data
}; };
static ui_color_t portapack_color_rgb( __attribute__((unused)) static ui_color_t portapack_color_rgb(
const uint_fast8_t r, const uint_fast8_t r,
const uint_fast8_t g, const uint_fast8_t g,
const uint_fast8_t b const uint_fast8_t b
@ -274,8 +274,8 @@ static void portapack_sleep_milliseconds(const uint32_t milliseconds) {
static struct gpio_t gpio_io_stbx = GPIO(5, 0); /* P2_0 */ static struct gpio_t gpio_io_stbx = GPIO(5, 0); /* P2_0 */
static struct gpio_t gpio_addr = GPIO(5, 1); /* P2_1 */ static struct gpio_t gpio_addr = GPIO(5, 1); /* P2_1 */
static struct gpio_t gpio_lcd_te = GPIO(5, 3); /* P2_3 */ __attribute__((unused)) static struct gpio_t gpio_lcd_te = GPIO(5, 3); /* P2_3 */
static struct gpio_t gpio_unused = GPIO(5, 7); /* P2_8 */ __attribute__((unused)) static struct gpio_t gpio_unused = GPIO(5, 7); /* P2_8 */
static struct gpio_t gpio_lcd_rdx = GPIO(5, 4); /* P2_4 */ static struct gpio_t gpio_lcd_rdx = GPIO(5, 4); /* P2_4 */
static struct gpio_t gpio_lcd_wrx = GPIO(1, 10); /* P2_9 */ static struct gpio_t gpio_lcd_wrx = GPIO(1, 10); /* P2_9 */
static struct gpio_t gpio_dir = GPIO(1, 13); /* P2_13 */ static struct gpio_t gpio_dir = GPIO(1, 13); /* P2_13 */
@ -334,7 +334,7 @@ static void portapack_dir_write() {
*/ */
} }
static void portapack_lcd_rd_assert() { __attribute__((unused)) static void portapack_lcd_rd_assert() {
gpio_clear(portapack.gpio_lcd_rdx); gpio_clear(portapack.gpio_lcd_rdx);
} }