Files
haikuports/media-libs/libcuefile/patches/libcuefile-475.patchset
fbrosson 0f2f511e93 musepack: add x86{,_64} to libcuefile, libreplaygain and musepack_tools.
* Add x86 and x86_64 to ARCHITECTURES as the recipe also works fine for these.
* Add x86_gcc2 to SECONDARY_ARCHITECTURES for use in x86 (gcc4) hybrid.
* Use $portVersion instead of the current version in SOURCE_{URI,DIR}.
* Drop the "r" prefix in version (r475 → 475) and ajust SOURCE_{URI,DIR}.
2016-03-08 16:45:10 +00:00

36 lines
706 B
Plaintext

From 06f43009bc5303fda6a3a358b087579650d679d3 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 13 Sep 2014 16:35:44 +0200
Subject: gcc2 fixes.
diff --git a/src/cue_parse.c b/src/cue_parse.c
index aae2d53..5d90ef8 100755
--- a/src/cue_parse.c
+++ b/src/cue_parse.c
@@ -1515,10 +1515,11 @@ void yyerror (char *s)
Cd *cue_parse (FILE *fp)
{
+ int error = yyparse();
+ Cd* res;
cue_yyin = fp;
yydebug = 0;
- int error = yyparse();
cue_delete_buffer();
if (prev_filename) {
free(prev_filename);
@@ -1533,7 +1534,7 @@ Cd *cue_parse (FILE *fp)
new_filename = 0;
}
- Cd *res = cd;
+ res = cd;
if (error) {
cd_delete(cd);
res = 0;
--
1.8.3.4