Merge pull request #637 from stweil/fixes
[openjpeg.git] / src / lib / openjp2 / t1_generate_luts.c
index 65b0e4f06280aa0b03cbf00d5d741bcb97abf44b..1997d39977a42befce3b740bc36a77213cca9d11 100644 (file)
@@ -1,9 +1,15 @@
 /*
- * Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
- * Copyright (c) 2002-2007, Professor Benoit Macq
+ * The copyright in this software is being made available under the 2-clauses 
+ * BSD License, included below. This software may be subject to other third 
+ * party and contributor rights, including patent rights, and no such rights
+ * are granted under this license.
+ *
+ * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
+ * Copyright (c) 2002-2014, Professor Benoit Macq
  * Copyright (c) 2001-2003, David Janssens
  * Copyright (c) 2002-2003, Yannick Verschueren
- * Copyright (c) 2003-2007, Francois-Olivier Devaux and Antonin Descampe
+ * Copyright (c) 2003-2007, Francois-Olivier Devaux 
+ * Copyright (c) 2003-2014, Antonin Descampe
  * Copyright (c) 2005, Herve Drolon, FreeImage Team
  * Copyright (c) 2007, Callum Lerwick <seg@haxxed.com>
  * All rights reserved.
@@ -170,7 +176,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) {
@@ -181,7 +187,8 @@ void dump_array16(int array[],int size){
        printf("0x%04x\n};\n\n", array[size]);
 }
 
-int main(){
+int main(int argc, char **argv)
+{
        int i, j;
        double u, v, t;
 
@@ -190,6 +197,7 @@ int main(){
        int lut_nmsedec_sig0[1 << T1_NMSEDEC_BITS];
        int lut_nmsedec_ref[1 << T1_NMSEDEC_BITS];
        int lut_nmsedec_ref0[1 << T1_NMSEDEC_BITS];
+  (void)argc; (void)argv;
 
        printf("/* This file was automatically generated by t1_generate_luts.c */\n\n");