From fe3c1f9061978a9d594c4b102cc91180261b8225 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 15 Oct 2012 07:31:05 +0000 Subject: [PATCH] [trunk] Fix warning for no previous prototype by using static function --- src/lib/openjp2/jpt.c | 4 ++-- src/lib/openjp2/t1_generate_luts.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/openjp2/jpt.c b/src/lib/openjp2/jpt.c index a2566ea8..89b7565e 100644 --- a/src/lib/openjp2/jpt.c +++ b/src/lib/openjp2/jpt.c @@ -34,7 +34,7 @@ * Store information (7 bits) in value * */ -unsigned int jpt_read_VBAS_info(opj_cio_t *cio, unsigned int value) { +static unsigned int jpt_read_VBAS_info(opj_cio_t *cio, unsigned int value) { unsigned char elmt; elmt = cio_read(cio, 1); @@ -69,7 +69,7 @@ void jpt_init_msg_header(opj_jpt_msg_header_t * header) { * Only parameters always present in message header * */ -void jpt_reinit_msg_header(opj_jpt_msg_header_t * header) { +static void jpt_reinit_msg_header(opj_jpt_msg_header_t * header) { header->Id = 0; /* In-class Identifier */ header->last_byte = 0; /* Last byte information */ header->Msg_offset = 0; /* Message offset */ diff --git a/src/lib/openjp2/t1_generate_luts.c b/src/lib/openjp2/t1_generate_luts.c index 65b0e4f0..d1843248 100644 --- a/src/lib/openjp2/t1_generate_luts.c +++ b/src/lib/openjp2/t1_generate_luts.c @@ -170,7 +170,7 @@ static int t1_init_spb(int f) { return n; } -void dump_array16(int array[],int size){ +static void dump_array16(int array[],int size){ int i; --size; for (i = 0; i < size; ++i) {