[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Thu, 2005-04-21 at 19:19 +0200, Elias Pschernig wrote:
> On Wed, 2005-04-06 at 18:56 +0200, Elias Pschernig wrote:
> > On Sat, 2005-01-29 at 16:07 +1100, Peter Wang wrote:
> >
> > > Then I'd say we can't use it yet for the normal case. It's probably
> > > okay for the --enable-strictwarn (aka. WARNMODE=1) case.
> >
> > Done for linux, and without a proper gcc version check, with the
> > attached (one-line) patch .
> >
>
> Well, I guess it's harmless enough, so committed it.
>
Oh, and it even found some superfluous variables, which the attached
patch removes.
--
Elias Pschernig
Index: examples/expackf.c
===================================================================
RCS file: /cvsroot/alleg/allegro/examples/expackf.c,v
retrieving revision 1.2
diff -u -p -r1.2 expackf.c
--- examples/expackf.c 11 Apr 2005 13:01:15 -0000 1.2
+++ examples/expackf.c 22 Apr 2005 15:54:53 -0000
@@ -347,8 +347,6 @@ static void stdio_seek_test(void)
{
FILE *fp;
PACKFILE *f;
- int c1, c2, c3, c4;
- int ret;
char str[8];
fp = fopen("expackf.c", "rb");
Index: examples/exfont.c
===================================================================
RCS file: /cvsroot/alleg/allegro/examples/exfont.c,v
retrieving revision 1.3
diff -u -p -r1.3 exfont.c
--- examples/exfont.c 5 Apr 2005 11:29:50 -0000 1.3
+++ examples/exfont.c 22 Apr 2005 15:54:53 -0000
@@ -11,7 +11,7 @@
int main(void)
{
- FONT *f1, *f2, *f3, *f4, *f5, *f6;
+ FONT *f1, *f2, *f3, *f4, *f5;
/* you should always do this at the start of Allegro programs */
if (allegro_init() != 0)
Index: src/unix/alsa9.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/unix/alsa9.c,v
retrieving revision 1.12
diff -u -p -r1.12 alsa9.c
--- src/unix/alsa9.c 31 Mar 2005 22:32:50 -0000 1.12
+++ src/unix/alsa9.c 22 Apr 2005 15:54:53 -0000
@@ -65,7 +65,6 @@ static char const *alsa_device = "defaul
static char const *alsa_mixer_device = "default";
static snd_pcm_hw_params_t *hwparams = NULL;
static snd_pcm_sw_params_t *swparams = NULL;
-static snd_pcm_channel_area_t *areas = NULL;
static snd_output_t *snd_output = NULL;
static snd_pcm_uframes_t alsa_bufsize;
static snd_mixer_t *alsa_mixer = NULL;
Index: src/unix/jack.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/unix/jack.c,v
retrieving revision 1.5
diff -u -p -r1.5 jack.c
--- src/unix/jack.c 12 Mar 2005 06:29:06 -0000 1.5
+++ src/unix/jack.c 22 Apr 2005 15:54:53 -0000
@@ -206,7 +206,7 @@ static int jack_detect(int input)
static int jack_init(int input, int voices)
{
const char **ports;
- char tmp1[128], tmp2[128];
+ char tmp2[128];
if (!jack_detect(input))
return -1;