Revision: 57035
http://sourceforge.net/p/brlcad/code/57035
Author: starseeker
Date: 2013-08-21 15:31:50 +0000 (Wed, 21 Aug 2013)
Log Message:
-----------
more declaration-after-statement warnings
Modified Paths:
--------------
brlcad/trunk/src/other/stepcode/src/fedex_plus/classes.c
brlcad/trunk/src/other/stepcode/src/fedex_plus/classes_misc.c
Modified: brlcad/trunk/src/other/stepcode/src/fedex_plus/classes.c
===================================================================
--- brlcad/trunk/src/other/stepcode/src/fedex_plus/classes.c 2013-08-21
15:26:34 UTC (rev 57034)
+++ brlcad/trunk/src/other/stepcode/src/fedex_plus/classes.c 2013-08-21
15:31:50 UTC (rev 57035)
@@ -2490,6 +2490,7 @@
uniqs = entity->u.entity->unique;
if( uniqs ) {
+ int i;
fprintf( files->create,
" %s::%s%s->_uniqueness_rules = new
Uniqueness_rule__set;\n",
SCHEMAget_name( schema ), ENT_PREFIX, ENTITYget_name( entity
) );
@@ -2508,7 +2509,6 @@
* change EntityDescriptor::generate_express() to generate the UNIQUE
clause
*/
LISTdo( uniqs, list, Linked_List )
- int i;
i = 0;
fprintf( files->create, " ur = new Uniqueness_rule(\"" );
LISTdo( list, v, Variable )
@@ -3334,6 +3334,7 @@
void TYPEprint_new( const Type type, FILE * create, Schema schema ) {
Linked_List wheres;
char * whereRule, *whereRule_formatted = NULL;
+ size_t whereRule_formatted_size = 0;
char * ptr, *ptr2;
Type tmpType = TYPEget_head( type );
@@ -3439,7 +3440,6 @@
fprintf( create, " %s::schema->AddType(%s);\n", SCHEMAget_name(
schema ), TYPEtd_name( type ) );
- size_t whereRule_formatted_size = 0;
wheres = type->where;
if( wheres ) {
Modified: brlcad/trunk/src/other/stepcode/src/fedex_plus/classes_misc.c
===================================================================
--- brlcad/trunk/src/other/stepcode/src/fedex_plus/classes_misc.c
2013-08-21 15:26:34 UTC (rev 57034)
+++ brlcad/trunk/src/other/stepcode/src/fedex_plus/classes_misc.c
2013-08-21 15:31:50 UTC (rev 57035)
@@ -122,13 +122,14 @@
FILE * FILEcreate( const char * filename ) {
FILE * file;
+ const char * fn;
if( ( file = fopen( filename, "w" ) ) == NULL ) {
printf( "**Error in SCHEMAprint: unable to create file %s ** \n",
filename );
return ( NULL );
}
- const char * fn = StrToConstant ( filename );
+ fn = StrToConstant ( filename );
fprintf( file, "#ifndef %s\n", fn );
fprintf( file, "#define %s\n\n", fn );
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits