Fix a few warnings.

This commit is contained in:
Markus Hitter 2010-07-23 12:01:29 +02:00
parent 31dcf28fd4
commit 81fd2c3773
3 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ void process_gcode_command(GCODE_COMMAND *gcmd) {
* *
****************************************************************************/
void request_resend() {
void request_resend(void) {
serial_writestr_P(PSTR("Resend:"));
serwrite_uint8(next_target.N);
serial_writechar('\n');

View File

@ -75,6 +75,6 @@ void scan_char(uint8_t c);
void process_gcode_command(GCODE_COMMAND *gcmd);
// uses the global variable next_target.N
void request_resend();
void request_resend(void);
#endif /* _GCODE_H */

View File

@ -184,7 +184,7 @@ void serial_writestr_P(PGM_P data)
{
uint8_t r, i = 0;
// yes, this is *supposed* to be assignment rather than comparison, so we break when r is assigned zero
for (r; (r = pgm_read_byte(&data[i])); i++)
for ( ; (r = pgm_read_byte(&data[i])); i++)
serial_writechar(r);
}