Skip to content

Commit 99407fb

Browse files
committed
[warning-fix][-Wreturn-type]
1 parent 082cd84 commit 99407fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/clstepcore/STEPattributeList.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ STEPattribute & STEPattributeList::operator []( int n ) {
4747
// else
4848
cerr << "\nERROR in STEP Core library: " << __FILE__ << ":"
4949
<< __LINE__ << "\n" << _POC_ << "\n\n";
50+
abort();
51+
return *(STEPattribute*) 0; //will never get here, but gcc produces warning
5052
}
5153

5254
int STEPattributeList::list_length() {

src/express/object.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ Symbol *
3030
UNK_get_symbol( Generic x ) {
3131
fprintf( stderr, "OBJget_symbol called on object of unknown type\n" );
3232
ERRORabort( 0 );
33-
#if defined(lint) || defined(CENTERLINE)
3433
return 0;
35-
#endif
3634
}
3735

3836
/*

0 commit comments

Comments
 (0)