summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
7721de9)
Pick low hanging fruit. Stick with the previous implementation's format
specifiers, assume that they work on all platforms which IRMP supports.
Cast arguments to mere integers where necessary instead, again assume
that their range fits as they did in the previous implementation. This
silences several of these compiler warnings:
irmp.c:3332:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
ANALYZE_PRINTF ("protocol = NIKON, start bit timings: pulse: %3d - %3d, pause: %3d - %3d\n",
^
#ifdef ANALYZE
ANALYZE_PRINTF ("protocol = NIKON, start bit timings: pulse: %3d - %3d, pause: %3d - %3d\n",
NIKON_START_BIT_PULSE_LEN_MIN, NIKON_START_BIT_PULSE_LEN_MAX,
#ifdef ANALYZE
ANALYZE_PRINTF ("protocol = NIKON, start bit timings: pulse: %3d - %3d, pause: %3d - %3d\n",
NIKON_START_BIT_PULSE_LEN_MIN, NIKON_START_BIT_PULSE_LEN_MAX,
- NIKON_START_BIT_PAUSE_LEN_MIN, NIKON_START_BIT_PAUSE_LEN_MAX);
+ (int)NIKON_START_BIT_PAUSE_LEN_MIN, (int)NIKON_START_BIT_PAUSE_LEN_MAX);
#endif // ANALYZE
irmp_param_p = (IRMP_PARAMETER *) &nikon_param;
}
#endif // ANALYZE
irmp_param_p = (IRMP_PARAMETER *) &nikon_param;
}
{
#ifdef ANALYZE
ANALYZE_PRINTF ("ignoring NEC repetition frame: timeout occured, key_repetition_len = %d > %d\n",
{
#ifdef ANALYZE
ANALYZE_PRINTF ("ignoring NEC repetition frame: timeout occured, key_repetition_len = %d > %d\n",
- key_repetition_len, NEC_FRAME_REPEAT_PAUSE_LEN_MAX);
+ (int)key_repetition_len, (int)NEC_FRAME_REPEAT_PAUSE_LEN_MAX);
#endif // ANALYZE
irmp_ir_detected = FALSE;
}
#endif // ANALYZE
irmp_ir_detected = FALSE;
}
{
#ifdef ANALYZE
ANALYZE_PRINTF ("code skipped: SIRCS auto repetition frame #%d, counter = %d, auto repetition len = %d\n",
{
#ifdef ANALYZE
ANALYZE_PRINTF ("code skipped: SIRCS auto repetition frame #%d, counter = %d, auto repetition len = %d\n",
- repetition_frame_number + 1, key_repetition_len, AUTO_FRAME_REPETITION_LEN);
+ repetition_frame_number + 1, (int)key_repetition_len, (int)AUTO_FRAME_REPETITION_LEN);
#endif // ANALYZE
key_repetition_len = 0;
}
#endif // ANALYZE
key_repetition_len = 0;
}
{
#ifdef ANALYZE
ANALYZE_PRINTF ("code skipped: NUBERT auto repetition frame #%d, counter = %d, auto repetition len = %d\n",
{
#ifdef ANALYZE
ANALYZE_PRINTF ("code skipped: NUBERT auto repetition frame #%d, counter = %d, auto repetition len = %d\n",
- repetition_frame_number + 1, key_repetition_len, AUTO_FRAME_REPETITION_LEN);
+ repetition_frame_number + 1, (int)key_repetition_len, (int)AUTO_FRAME_REPETITION_LEN);
#endif // ANALYZE
key_repetition_len = 0;
}
#endif // ANALYZE
key_repetition_len = 0;
}
{
#ifdef ANALYZE
ANALYZE_PRINTF ("code skipped: SPEAKER auto repetition frame #%d, counter = %d, auto repetition len = %d\n",
{
#ifdef ANALYZE
ANALYZE_PRINTF ("code skipped: SPEAKER auto repetition frame #%d, counter = %d, auto repetition len = %d\n",
- repetition_frame_number + 1, key_repetition_len, AUTO_FRAME_REPETITION_LEN);
+ repetition_frame_number + 1, (int)key_repetition_len, (int)AUTO_FRAME_REPETITION_LEN);
#endif // ANALYZE
key_repetition_len = 0;
}
#endif // ANALYZE
key_repetition_len = 0;
}
if (key_repetition_len < NEC_FRAME_REPEAT_PAUSE_LEN_MAX)
{
#ifdef ANALYZE
if (key_repetition_len < NEC_FRAME_REPEAT_PAUSE_LEN_MAX)
{
#ifdef ANALYZE
- ANALYZE_PRINTF ("Detected NEC repetition frame, key_repetition_len = %d\n", key_repetition_len);
+ ANALYZE_PRINTF ("Detected NEC repetition frame, key_repetition_len = %d\n", (int)key_repetition_len);
ANALYZE_ONLY_NORMAL_PRINTF("REPETETION FRAME ");
#endif // ANALYZE
irmp_tmp_address = last_irmp_address; // address is last address
ANALYZE_ONLY_NORMAL_PRINTF("REPETETION FRAME ");
#endif // ANALYZE
irmp_tmp_address = last_irmp_address; // address is last address
{
#ifdef ANALYZE
ANALYZE_PRINTF ("Detected NEC repetition frame, ignoring it: timeout occured, key_repetition_len = %d > %d\n",
{
#ifdef ANALYZE
ANALYZE_PRINTF ("Detected NEC repetition frame, ignoring it: timeout occured, key_repetition_len = %d > %d\n",
- key_repetition_len, NEC_FRAME_REPEAT_PAUSE_LEN_MAX);
+ (int)key_repetition_len, (int)NEC_FRAME_REPEAT_PAUSE_LEN_MAX);
#endif // ANALYZE
irmp_ir_detected = FALSE;
}
#endif // ANALYZE
irmp_ir_detected = FALSE;
}