summaryrefslogtreecommitdiff
path: root/debian/patches/gcc-4.6.patch
blob: c07a73700948b4bc540348fa9897afd22294b0af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- oss4-4.2-build2004/cmd/ossmixd/ossmixd.c
+++ oss4-4.2-build2004/cmd/ossmixd/ossmixd.c
@@ -161,7 +161,7 @@
   oss_mixext *ext;
   int i;
   int nrext;
-  int value, prev_value;
+  int value, prev_value __attribute__((unused));
 
   nrext = ossmix_get_nrext (mixernum);
 
--- oss4-4.2-build2004/cmd/ossphone/ossphone.c
+++ oss4-4.2-build2004/cmd/ossphone/ossphone.c
@@ -151,7 +151,7 @@
   printf("Waiting for dial tone...\n");
   while (dc_level < min_dc_level)
        {
-	 int dummy;
+	 int dummy __attribute__((unused));
          modem_read(modem_in_fd, buf, sizeof(buf));
          dummy=write(dev_dsp_fd, buf, sizeof(buf));
 
@@ -187,7 +187,7 @@
        {
          if (dtmf_fill_digit (digit, digit_len, *phone_number) >= 0)
            {
-	     int dummy;
+	     int dummy __attribute__((unused));
 
              printf("%c", *phone_number);
              fflush(stdout);
@@ -381,7 +381,7 @@
 
     while (1)
          {
-	   int dummy;
+	   int dummy __attribute__((unused));
            FD_ZERO(&rfds);
            FD_SET(modem_in_fd, &rfds);
            FD_SET(dev_dsp_fd, &rfds);
--- oss4-4.2-build2004/cmd/ossplay/ossplay_parser.c
+++ oss4-4.2-build2004/cmd/ossplay/ossplay_parser.c
@@ -764,7 +764,7 @@
          pos = l + 7, tmp, vers;
   unsigned char buf[256], block_type;
   flag plock = 0;
-  int speed = 11025, channels = 1, bits = 8, format = AFMT_U8;
+  int speed = 11025, channels = 1, bits __attribute__((unused)) = 8, format = AFMT_U8;
   errors_t ret;
 
   if (read (fd, hdr + 19, 7) < 7)
@@ -1685,7 +1685,7 @@
 caf_desc_parse (uint32 id, unsigned char * buf, big_t len, file_t * f)
 {
   int format;
-  uint32 bits, bytes_per_packet, flags, frames_per_packet;
+  uint32 bits, bytes_per_packet, flags, frames_per_packet __attribute__((unused));
 
   {
     /*