[m-rev.] trivial diff: fix lcc compile error
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Mar 7 20:30:54 AEDT 2002
Estimated hours taken: 0.1
Branches: main
trace/mercury_trace_internal.c:
Delete the forward declaration of a static array.
This declaration is not valid in standard C, which
does not permit forward declarations for static objects,
and specifically it caused a compilation error with lcc.
It was not needed, since the code which references
the array all occurs after the array definition.
Workspace: /home/ceres/fjh/mercury
Index: trace/mercury_trace_internal.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_internal.c,v
retrieving revision 1.120
diff -u -d -r1.120 mercury_trace_internal.c
--- trace/mercury_trace_internal.c 6 Mar 2002 14:35:04 -0000 1.120
+++ trace/mercury_trace_internal.c 7 Mar 2002 08:40:47 -0000
@@ -327,7 +327,6 @@
static void MR_trace_event_print_internal_report(
MR_Event_Info *event_info);
-static const MR_Trace_Command_Info MR_trace_valid_command_list[];
static const MR_Trace_Command_Info *MR_trace_valid_command(
const char *command);
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list