Opened 19 years ago
Closed 15 years ago
#1240 closed defect (fixed)
[PATCH] Avoid trailing comma in enum list
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Problems | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
It is illegal in ANSI C89 to have a trailing comma at the end of an enum list. The standard committee forgot to make it legal. There is only one enum list in the mapserver source with a trailing comma. This patch fixes the problem: Index: mapgraticule.c =================================================================== RCS file: /data2/cvsroot/mapserver/mapgraticule.c,v retrieving revision 1.9 diff -u -u -r1.9 mapgraticule.c --- mapgraticule.c 15 Nov 2004 20:35:02 -0000 1.9 +++ mapgraticule.c 12 Feb 2005 18:02:08 -0000 @@ -66,7 +66,7 @@ { lpDefault = 0, lpDDMMSS = 1, - lpDDMM, + lpDDMM } msLabelProcessingType; void DefineAxis( int iTickCountTarget, double *Min, double *Max, double *Inc );
Note:
See TracTickets
for help on using tickets.
Checking mapgraticule.c, looks like this is fixed now.