Skip to content

Commit

Permalink
fix: build second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
exander77 committed Sep 7, 2023
1 parent 3afb6b0 commit 50d8de0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ccronexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,9 +1289,7 @@ static int find_prev_offset(uint8_t* bits, int max, int value, int offset, struc
int notfound = 0;
int err = 0;
int next_value = prev_set_bit(bits, value, 0, &notfound);
#ifdef UNREFERENCED_PARAMETER
UNREFERENCED_PARAMETER(offset);
#endif
offset = offset;
/* roll under if needed */
if (notfound) {
err = add_to_field(calendar, nextField, -1);
Expand Down Expand Up @@ -1322,10 +1320,8 @@ static int find_prev_day(struct tm* calendar, uint8_t* days_of_month, int8_t* da
int err;
unsigned int count = 0;
unsigned int max = 366;
#ifdef UNREFERENCED_PARAMETER
UNREFERENCED_PARAMETER(flags);
UNREFERENCED_PARAMETER(day_in_month);
#endif
flags = flags;
day_in_month = day_in_month;

while ((!cron_get_bit(days_of_month, day_of_month) || !cron_get_bit(days_of_week, day_of_week)) && count++ < max) {
err = add_to_field(calendar, CRON_CF_DAY_OF_MONTH, -1);
Expand Down

0 comments on commit 50d8de0

Please sign in to comment.