adapt to newer avr-gcc
Stefan Schuermans

Stefan Schuermans commited on 2019-05-01 18:18:20
Showing 4 changed files, with 7 additions and 3 deletions.

... ...
@@ -103,6 +103,8 @@ void AppsRun(void) // (extern)
103 103
   debug_apps_printf("data area commences at sector: %lu", vi.dataarea);
104 104
   debug_apps_printf("clusters in data area:         %lu", vi.numclusters);
105 105
   debug_apps_printf("sectors per cluster:           %hu", vi.secperclus);
106
+  (void)sec_clus;
107
+  (void)fstype;
106 108
 
107 109
   // list directory, dump file
108 110
   AppsListDump(sectorBuf, &vi);
... ...
@@ -371,8 +371,8 @@ void DhcpRecv(unsigned char *pData, unsigned short Length)      // (extern)
371 371
   unsigned char *opt_ptr, tag, len;
372 372
   unsigned short opt_len;
373 373
   unsigned char type;
374
-  unsigned char have_mask, mask[4], have_gateway, gateway[4];
375
-  unsigned char have_time, have_server, server[4];
374
+  unsigned char have_mask, mask[4] = {}, have_gateway, gateway[4] = {};
375
+  unsigned char have_time, have_server, server[4] = {};
376 376
   unsigned long time;
377 377
 
378 378
   // packet too short
... ...
@@ -34,7 +34,7 @@ unsigned char Timing20 = 0;
34 34
 unsigned char Timing20_10 = 0;
35 35
 
36 36
 // 2ms interrupt (timer 0 compare match)
37
-SIGNAL(SIG_OUTPUT_COMPARE0)
37
+ISR(TIMER0_COMP_vect)
38 38
 {
39 39
   // advance global timer
40 40
   TimingMs += 2;
... ...
@@ -27,6 +27,8 @@ void UartInit(void)     // (extern)
27 27
 // write a character
28 28
 int UartPutchar(char c, FILE * file)    // (extern)
29 29
 {
30
+  (void)file;
31
+
30 32
   // wait until last character was sent
31 33
   while (bit_is_clear(UCSR0A, UDRE))
32 34
     wdt_reset();
33 35