Eliminate some new warnings reported in build testing.

This commit is contained in:
Gregory Nutt 2018-07-20 10:10:09 -06:00
parent 3cc79be2fb
commit f0b4f14396
3 changed files with 2 additions and 35 deletions

View File

@ -46,39 +46,7 @@
* Public Data
****************************************************************************/
static uint8_t nuttxlogo[] =
{
0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x1b, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x37, 0xf8, 0x00, 0x00, 0x00, 0x00,
0x6f, 0xfe, 0x01, 0xc0, 0x03, 0xc0, 0xdc, 0x7f, 0x02, 0x20, 0x04, 0x21, 0xb8, 0x3f, 0x06, 0x10,
0x04, 0x13, 0x78, 0x3f, 0xcc, 0x10, 0x04, 0x1e, 0xf8, 0x1f, 0xe8, 0x10, 0x04, 0x0d, 0xf8, 0x1f,
0xf0, 0x20, 0x04, 0x0f, 0xf8, 0x0f, 0xf0, 0x20, 0x04, 0x07, 0xf8, 0x0f, 0xe0, 0x40, 0x04, 0x07,
0xf8, 0x07, 0xc0, 0x40, 0x04, 0x03, 0xf8, 0x07, 0xc0, 0x80, 0x04, 0x03, 0xf8, 0x03, 0x81, 0x00,
0x04, 0x01, 0xf8, 0x03, 0x83, 0x80, 0x04, 0x01, 0xf8, 0x01, 0x03, 0xc0, 0x0c, 0x00, 0xf8, 0x01,
0x07, 0xe0, 0x1c, 0x00, 0xf8, 0x00, 0x07, 0xf0, 0x34, 0x00, 0x78, 0x20, 0x0f, 0xf8, 0x6c, 0x00,
0x78, 0x20, 0x0f, 0xfc, 0xdc, 0x10, 0x38, 0x30, 0x1f, 0xfe, 0xbc, 0x10, 0x38, 0x30, 0x1f, 0xff,
0xfc, 0x18, 0x18, 0x30, 0x3f, 0xff, 0xfc, 0x18, 0x18, 0x30, 0x1f, 0xfd, 0x3c, 0x1c, 0x08, 0x20,
0x1f, 0xfb, 0x3c, 0x1c, 0x08, 0x20, 0x0f, 0xf6, 0x1c, 0x1e, 0x00, 0x00, 0x0f, 0xec, 0x04, 0x1e,
0x00, 0x00, 0x07, 0xd8, 0x04, 0x1f, 0x00, 0x01, 0x07, 0xb0, 0x04, 0x1f, 0x00, 0x01, 0x03, 0x60,
0x04, 0x1f, 0x80, 0x03, 0x82, 0xc0, 0x04, 0x1f, 0x80, 0x07, 0x81, 0x80, 0x04, 0x1f, 0xc0, 0x07,
0xc0, 0x80, 0x04, 0x1f, 0xc0, 0x07, 0xe0, 0x40, 0x04, 0x1f, 0xe0, 0x0f, 0xc0, 0x40, 0x04, 0x1f,
0xe0, 0x0f, 0xb0, 0x20, 0x04, 0x13, 0xf0, 0x1f, 0x68, 0x10, 0x04, 0x13, 0xf0, 0x3e, 0xcc, 0x10,
0x04, 0x11, 0xf8, 0x3d, 0x82, 0x10, 0x02, 0x20, 0x78, 0x3b, 0x02, 0x20, 0x01, 0xc0, 0x7e, 0xf6,
0x01, 0xc0, 0x00, 0x00, 0x3f, 0xec, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xd8, 0x00, 0x00, 0x00, 0x00,
0x0f, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x07, 0x60, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00
};
static uint8_t demo[] =
{
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x03, 0xf0, 0x00, 0x03, 0xf8, 0x00, 0x03, 0xfc,
0x00, 0x03, 0xfe, 0x00, 0x03, 0xfe, 0x00, 0x03, 0xff, 0x00, 0x03, 0xff, 0x80, 0x03, 0xff, 0xc0,
0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x03, 0xff, 0x80, 0x03, 0xff, 0x80, 0x03, 0xff, 0x00, 0x03,
0xfe, 0x00, 0x03, 0xfc, 0x00, 0x03, 0xf8, 0x00, 0x03, 0xf8, 0x00, 0x03, 0xf0, 0x00, 0x03, 0xe0,
0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
static uint8_t battery [] =
static uint8_t g_battery [] =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfc, 0x10, 0x00, 0x04, 0x37, 0x77,

View File

@ -493,7 +493,7 @@ static void nxdemo_demo_4(NXWINDOW hwnd)
origin.x = 0;
origin.y = 0;
src[0] = (FAR const void *)battery;
src[0] = (FAR const void *)g_battery;
ret = nx_bitmap((NXWINDOW)hwnd,
&rect,

View File

@ -211,7 +211,6 @@ int main(int argc, FAR char *argv[])
int nxdemo_main(int argc, char *argv[])
#endif
{
nxgl_mxpixel_t color;
int ret;
/* Initialize NX */