diff --git a/libfprint/drivers/aes1610.c b/libfprint/drivers/aes1610.c index 50bc483..a474a8b 100644 --- a/libfprint/drivers/aes1610.c +++ b/libfprint/drivers/aes1610.c @@ -733,7 +733,7 @@ static const struct aes_regwrite init[] = { { 0x82, 0x00 } }; -static const struct aes_regwrite stop_reader[] = { +static const struct aes_regwrite stop_reader[] __attribute__((unused)) = { { 0xFF, 0x00 } }; @@ -851,4 +851,3 @@ struct fp_img_driver aes1610_driver = { .activate = dev_activate, .deactivate = dev_deactivate, }; - diff --git a/libfprint/drivers/aes2501.c b/libfprint/drivers/aes2501.c index f6e3edf..dd4a1a5 100644 --- a/libfprint/drivers/aes2501.c +++ b/libfprint/drivers/aes2501.c @@ -253,7 +253,7 @@ static int sum_histogram_values(unsigned char *data, uint8_t threshold) /* FIXME endianness */ for (i = threshold; i < 16; i++) r += histogram[i]; - + return r; } @@ -668,7 +668,7 @@ static const struct aes_regwrite init_2[] = { { AES2501_REG_CTRL1, AES2501_CTRL1_REG_UPDATE }, }; -static const struct aes_regwrite init_3[] = { +static const struct aes_regwrite init_3[] __attribute__((unused)) = { { 0xff, 0x00 }, { AES2501_REG_CTRL1, AES2501_CTRL1_MASTER_RESET }, { AES2501_REG_AUTOCALOFFSET, 0x41 }, @@ -889,4 +889,3 @@ struct fp_img_driver aes2501_driver = { .activate = dev_activate, .deactivate = dev_deactivate, }; - diff --git a/libfprint/nbis/mindtct/morph.c b/libfprint/nbis/mindtct/morph.c index b6be74f..2cdf45e 100644 --- a/libfprint/nbis/mindtct/morph.c +++ b/libfprint/nbis/mindtct/morph.c @@ -1,15 +1,15 @@ /******************************************************************************* -License: -This software was developed at the National Institute of Standards and -Technology (NIST) by employees of the Federal Government in the course -of their official duties. Pursuant to title 17 Section 105 of the -United States Code, this software is not subject to copyright protection -and is in the public domain. NIST assumes no responsibility whatsoever for -its use by other parties, and makes no guarantees, expressed or implied, -about its quality, reliability, or any other characteristic. - -Disclaimer: +License: +This software was developed at the National Institute of Standards and +Technology (NIST) by employees of the Federal Government in the course +of their official duties. Pursuant to title 17 Section 105 of the +United States Code, this software is not subject to copyright protection +and is in the public domain. NIST assumes no responsibility whatsoever for +its use by other parties, and makes no guarantees, expressed or implied, +about its quality, reliability, or any other characteristic. + +Disclaimer: This software was developed to promote biometric standards and biometric technology testing for the Federal Government in accordance with the USA PATRIOT Act and the Enhanced Border Security and Visa Entry Reform Act. @@ -17,7 +17,7 @@ Specific hardware and software products identified in this software were used in order to perform the software development. In no case does such identification imply recommendation or endorsement by the National Institute of Standards and Technology, nor does it imply that the products and equipment -identified are necessarily the best available for the purpose. +identified are necessarily the best available for the purpose. *******************************************************************************/ @@ -69,13 +69,13 @@ void erode_charimage_2(unsigned char *inp, unsigned char *out, { int row, col; unsigned char *itr = inp, *otr = out; - + memcpy(out, inp, iw*ih); - + /* for true pixels. kill pixel if there is at least one false neighbor */ for ( row = 0 ; row < ih ; row++ ) for ( col = 0 ; col < iw ; col++ ) - { + { if (*itr) /* erode only operates on true pixels */ { /* more efficient with C's left to right evaluation of */ @@ -87,7 +87,7 @@ void erode_charimage_2(unsigned char *inp, unsigned char *out, *otr = 0; } itr++ ; otr++; - } + } } /************************************************************************* @@ -109,13 +109,13 @@ void dilate_charimage_2(unsigned char *inp, unsigned char *out, { int row, col; unsigned char *itr = inp, *otr = out; - + memcpy(out, inp, iw*ih); - + /* for all pixels. set pixel if there is at least one true neighbor */ for ( row = 0 ; row < ih ; row++ ) for ( col = 0 ; col < iw ; col++ ) - { + { if (!*itr) /* pixel is already true, neighbors irrelevant */ { /* more efficient with C's left to right evaluation of */ @@ -127,7 +127,7 @@ void dilate_charimage_2(unsigned char *inp, unsigned char *out, *otr = 1; } itr++ ; otr++; - } + } } /************************************************************************* @@ -151,7 +151,7 @@ char get_south8_2(char *ptr, const int row, const int iw, const int ih, { if (row >= ih-1) /* catch case where image is undefined southwards */ return failcode; /* use plane geometry and return code. */ - + else return *(ptr+iw); } @@ -175,7 +175,7 @@ char get_north8_2(char *ptr, const int row, const int iw, { if (row < 1) /* catch case where image is undefined northwards */ return failcode; /* use plane geometry and return code. */ - + else return *(ptr-iw); } @@ -199,7 +199,7 @@ char get_east8_2(char *ptr, const int col, const int iw, { if (col >= iw-1) /* catch case where image is undefined eastwards */ return failcode; /* use plane geometry and return code. */ - + else return *(ptr+ 1); } @@ -221,6 +221,6 @@ char get_west8_2(char *ptr, const int col, const int failcode) { if (col < 1) /* catch case where image is undefined westwards */ return failcode; /* use plane geometry and return code. */ - + else return *(ptr- 1); }