Skip to content

Commit

Permalink
Merge pull request #12 from koron393/warnings
Browse files Browse the repository at this point in the history
コンパイル時の WARNING メッセージを潰しています
  • Loading branch information
tsukumijima authored Oct 5, 2024
2 parents 42eb8af + 72f9279 commit 3d65709
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions aribb25/arib_std_b25.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,9 @@ static void extract_emm_fixed_part(EMM_FIXED_PART *dst, uint8_t *src);
static uint8_t *resync(uint8_t *head, uint8_t *tail, int32_t unit);
static uint8_t *resync_force(uint8_t *head, uint8_t *tail, int32_t unit);

#ifdef USE_BENCHMARK
static void fill_random_bytes(uint8_t *data, size_t size);

#endif
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
interface method implementation
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
Expand Down Expand Up @@ -2145,6 +2146,8 @@ static int proc_ecm(DECRYPTOR_ELEM *dec, B_CAS_CARD *bcas, int32_t multi2_round)
r = ARIB_STD_B25_ERROR_ECM_PARSE_FAILURE;
}
}

return r;
}

#if defined(DEBUG)
Expand Down Expand Up @@ -3026,6 +3029,10 @@ static uint8_t *resync_force(uint8_t *head, uint8_t *tail, int32_t unit_size)
return NULL;
}

#ifdef USE_BENCHMARK
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
test function implementation
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
void fill_random_bytes(uint8_t *data, size_t size)
{
uint8_t mask = 0xFF;
Expand All @@ -3036,10 +3043,6 @@ void fill_random_bytes(uint8_t *data, size_t size)
}
}

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
test function implementation
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
#ifdef USE_BENCHMARK
#define PACKETS_PER_SEC 10000
int test_multi2_decryption(void *std_b25, int64_t *time, int32_t instruction, int32_t round)
{
Expand Down

0 comments on commit 3d65709

Please sign in to comment.