Browse Source

Silence unused variable warnings (#340)

pull/353/head
Amaryllis Kulla 4 years ago committed by GitHub
parent
commit
82160bca23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sensors/gc0308.c
  2. 2
      sensors/gc2145.c

2
sensors/gc0308.c

@ -184,6 +184,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize) @@ -184,6 +184,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize)
uint16_t h = resolution[framesize].height;
uint16_t row_s = (resolution[FRAMESIZE_VGA].height - h) / 2;
uint16_t col_s = (resolution[FRAMESIZE_VGA].width - w) / 2;
(void)row_s;
(void)col_s;
#if CONFIG_GC_SENSOR_SUBSAMPLE_MODE
struct subsample_cfg {

2
sensors/gc2145.c

@ -190,6 +190,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize) @@ -190,6 +190,8 @@ static int set_framesize(sensor_t *sensor, framesize_t framesize)
uint16_t h = resolution[framesize].height;
uint16_t row_s = (resolution[FRAMESIZE_UXGA].height - h) / 2;
uint16_t col_s = (resolution[FRAMESIZE_UXGA].width - w) / 2;
(void)row_s;
(void)col_s;
#if CONFIG_GC_SENSOR_SUBSAMPLE_MODE
struct subsample_cfg {

Loading…
Cancel
Save