mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
tools: bmp_logo: Mark local functions with static
These functions are only used locally. Enabling -Wmissing-prototypes triggers a warning. Mark them as static. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
committed by
Tom Rini
parent
bae3a34cb9
commit
bcc8d24d62
@@ -15,7 +15,7 @@ typedef struct bitmap_s { /* bitmap description */
|
|||||||
|
|
||||||
#define DEFAULT_CMAP_SIZE 16 /* size of default color map */
|
#define DEFAULT_CMAP_SIZE 16 /* size of default color map */
|
||||||
|
|
||||||
void usage(const char *prog)
|
static void usage(const char *prog)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: %s [--gen-info|--gen-data|--gen-bmp] file\n",
|
fprintf(stderr, "Usage: %s [--gen-info|--gen-data|--gen-bmp] file\n",
|
||||||
prog);
|
prog);
|
||||||
@@ -24,7 +24,7 @@ void usage(const char *prog)
|
|||||||
/*
|
/*
|
||||||
* Neutralize little endians.
|
* Neutralize little endians.
|
||||||
*/
|
*/
|
||||||
uint16_t le_short(uint16_t x)
|
static uint16_t le_short(uint16_t x)
|
||||||
{
|
{
|
||||||
uint16_t val;
|
uint16_t val;
|
||||||
uint8_t *p = (uint8_t *)(&x);
|
uint8_t *p = (uint8_t *)(&x);
|
||||||
@@ -35,14 +35,14 @@ uint16_t le_short(uint16_t x)
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
void skip_bytes (FILE *fp, int n)
|
static void skip_bytes(FILE *fp, int n)
|
||||||
{
|
{
|
||||||
while (n-- > 0)
|
while (n-- > 0)
|
||||||
fgetc (fp);
|
fgetc (fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((__noreturn__))
|
__attribute__ ((__noreturn__))
|
||||||
int error (char * msg, FILE *fp)
|
static int error(char *msg, FILE *fp)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "ERROR: %s\n", msg);
|
fprintf (stderr, "ERROR: %s\n", msg);
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ int error (char * msg, FILE *fp)
|
|||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen_info(bitmap_t *b, uint16_t n_colors)
|
static void gen_info(bitmap_t *b, uint16_t n_colors)
|
||||||
{
|
{
|
||||||
printf("/*\n"
|
printf("/*\n"
|
||||||
" * Automatically generated by \"tools/bmp_logo\"\n"
|
" * Automatically generated by \"tools/bmp_logo\"\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user