Bug 49210 - app-text/tree-1.4 fails to compile with gcc 3.4
Bug#: 49210 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: mr_bones_@gentoo.org Reported By: mikko.tiihonen@iki.fi
Component: Applications
URL: 
Summary: app-text/tree-1.4 fails to compile with gcc 3.4
Keywords:  
Status Whiteboard: 
Opened: 2004-04-27 14:34 0000
Description:   Opened: 2004-04-27 14:34 0000
gcc -march=k8 -pipe -O2 -fomit-frame-pointer -frename-registers -fweb --param
max-delay-slot-insn-search=300 --param max-delay-slot-live-search=1000 --param
max-pending-list-length=100 --param max-gcse-passes=4 --param
max-gcse-memory=104857600 --param max-crossjump-edges=400 -DLINUX_BIGFILE    -c
-o tree.o tree.c
tree.c: In function `url_encode':
tree.c:1086: error: label at end of compound statement


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Mikko Tiihonen 2004-04-27 14:35:42 0000 -------
Created an attachment (id=30186) [details]
Removes the offending function completely because it is never called.

------- Comment #2 From Robert Moss (RETIRED) 2004-04-27 16:41:58 0000 -------
The other solution, of course, is just to change the line:

default:

to instead read:

default:;

If this function is to be used in the future it would be as well to do this instead. If it's leftover cruft then get rid of it. But I'm always dubious about getting rid of functions completely.

------- Comment #3 From Mr. Bones. 2004-04-27 16:55:27 0000 -------
went with just adding the semi.  Thanks for the bug report.