Skip to content

Instantly share code, notes, and snippets.

@tsusanka
Created March 6, 2018 09:49
Show Gist options
  • Save tsusanka/a24a93004612ed0502ae8e33c6dbfe32 to your computer and use it in GitHub Desktop.
Save tsusanka/a24a93004612ed0502ae8e33c6dbfe32 to your computer and use it in GitHub Desktop.
mcu stellar
stellar.c: In function 'stellar_confirmSignString':
stellar.c:82:38: error: implicit declaration of function 'split_message' [-Werror=implicit-function-declaration]
const char **str_message_lines = split_message((const uint8_t*)(msg->message), message_len, 24);
^
stellar.c:82:38: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
stellar.c: In function 'stellar_confirmManageDataOp':
stellar.c:1029:34: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
const char **str_key_lines = split_message((const uint8_t*)(msg->key), strnlen(msg->key, 64), 16);
^
stellar.c:1049:39: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
const char **str_hash_lines = split_message((const uint8_t*)str_hash_digest, sizeof(str_hash_digest), 16);
^
stellar.c: In function 'stellar_layoutSigningDialog':
stellar.c:1692:5: error: too few arguments to function 'oledDrawString'
oledDrawString(offset_x, offset_y, str_header);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1699:9: error: too few arguments to function 'oledDrawString'
oledDrawString(offset_x, offset_y, line1);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1703:9: error: too few arguments to function 'oledDrawString'
oledDrawString(offset_x, offset_y, line2);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1707:9: error: too few arguments to function 'oledDrawString'
oledDrawString(offset_x, offset_y, line3);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1711:9: error: too few arguments to function 'oledDrawString'
oledDrawString(offset_x, offset_y, line4);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1715:9: error: too few arguments to function 'oledDrawString'
oledDrawString(offset_x, offset_y, line5);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1720:5: error: too few arguments to function 'oledDrawString'
oledDrawString(1, OLED_HEIGHT - 8, "\x15");
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1721:20: error: too few arguments to function 'fontCharWidth'
oledDrawString(fontCharWidth('\x15') + 3, OLED_HEIGHT - 8, "Cancel");
^
In file included from /trezor-mcu/oled.h:27:0,
from stellar.c:36:
/trezor-mcu/gen/fonts.h:13:5: note: declared here
int fontCharWidth(int font, char c);
^
stellar.c:1721:5: error: too few arguments to function 'oledDrawString'
oledDrawString(fontCharWidth('\x15') + 3, OLED_HEIGHT - 8, "Cancel");
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1722:36: error: too few arguments to function 'fontCharWidth'
oledInvert(0, OLED_HEIGHT - 9, fontCharWidth('\x15') + oledStringWidth("Cancel") + 2, OLED_HEIGHT - 1);
^
In file included from /trezor-mcu/oled.h:27:0,
from stellar.c:36:
/trezor-mcu/gen/fonts.h:13:5: note: declared here
int fontCharWidth(int font, char c);
^
stellar.c:1722:60: error: too few arguments to function 'oledStringWidth'
oledInvert(0, OLED_HEIGHT - 9, fontCharWidth('\x15') + oledStringWidth("Cancel") + 2, OLED_HEIGHT - 1);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:46:5: note: declared here
int oledStringWidth(const char *text, int font);
^
stellar.c:1726:9: error: too few arguments to function 'oledDrawStringCenter'
oledDrawStringCenter(OLED_HEIGHT - 8, warning);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:49:6: note: declared here
void oledDrawStringCenter(int y, const char* text, int font);
^
stellar.c:1738:33: error: too few arguments to function 'fontCharWidth'
oledDrawString(OLED_WIDTH - fontCharWidth('\x06') - 1, OLED_HEIGHT - 8, "\x06");
^
In file included from /trezor-mcu/oled.h:27:0,
from stellar.c:36:
/trezor-mcu/gen/fonts.h:13:5: note: declared here
int fontCharWidth(int font, char c);
^
stellar.c:1738:5: error: too few arguments to function 'oledDrawString'
oledDrawString(OLED_WIDTH - fontCharWidth('\x06') - 1, OLED_HEIGHT - 8, "\x06");
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1739:33: error: too few arguments to function 'oledStringWidth'
oledDrawString(OLED_WIDTH - oledStringWidth(str_next_label) - fontCharWidth('\x06') - 3, OLED_HEIGHT - 8, str_next_label);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:46:5: note: declared here
int oledStringWidth(const char *text, int font);
^
stellar.c:1739:67: error: too few arguments to function 'fontCharWidth'
oledDrawString(OLED_WIDTH - oledStringWidth(str_next_label) - fontCharWidth('\x06') - 3, OLED_HEIGHT - 8, str_next_label);
^
In file included from /trezor-mcu/oled.h:27:0,
from stellar.c:36:
/trezor-mcu/gen/fonts.h:13:5: note: declared here
int fontCharWidth(int font, char c);
^
stellar.c:1739:5: error: too few arguments to function 'oledDrawString'
oledDrawString(OLED_WIDTH - oledStringWidth(str_next_label) - fontCharWidth('\x06') - 3, OLED_HEIGHT - 8, str_next_label);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:48:6: note: declared here
void oledDrawString(int x, int y, const char* text, int font);
^
stellar.c:1740:29: error: too few arguments to function 'oledStringWidth'
oledInvert(OLED_WIDTH - oledStringWidth(str_next_label) - fontCharWidth('\x06') - 4, OLED_HEIGHT - 9, OLED_WIDTH - 1, OLED_HEIGHT - 1);
^
In file included from stellar.c:36:0:
/trezor-mcu/oled.h:46:5: note: declared here
int oledStringWidth(const char *text, int font);
^
stellar.c:1740:63: error: too few arguments to function 'fontCharWidth'
oledInvert(OLED_WIDTH - oledStringWidth(str_next_label) - fontCharWidth('\x06') - 4, OLED_HEIGHT - 9, OLED_WIDTH - 1, OLED_HEIGHT - 1);
^
In file included from /trezor-mcu/oled.h:27:0,
from stellar.c:36:
/trezor-mcu/gen/fonts.h:13:5: note: declared here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment