Skip to content

Commit 7316fe5

Browse files
committed
msvc warnings/errors
1 parent 4d32009 commit 7316fe5

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

src/base/judy/src/judy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@
6262

6363
#include "judy.h"
6464

65-
#if defined(STANDALONE) || defined(ASKITIS)
6665
#include <string.h>
6766
#include <stdio.h>
6867

68+
#if defined(STANDALONE) || defined(ASKITIS)
69+
6970
extern unsigned int MaxMem;
7071

7172
// void judy_abort (char *msg) __attribute__ ((noreturn)); // Tell static analyser that this function will not return

src/base/sc_benchmark.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#ifdef __cplusplus
88
#include <iostream>
9+
#include <iosfwd>
910
#include <string>
1011

1112
#include "sc_memmgr.h"

src/cllazyfile/lazyRefs.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "lazyTypes.h"
1111
#include "lazyInstMgr.h"
1212
#include "ExpDict.h"
13-
#include "sdaiApplication_instance.h"
1413
#include "SubSuperIterators.h"
1514
#include <STEPattribute.h>
1615
#include <STEPaggregate.h>
@@ -19,7 +18,7 @@
1918
#define strcasecmp _strcmpi
2019
#endif // _WIN32
2120

22-
21+
class SDAI_Application_instance;
2322
/*
2423
* given inverted attr ia:
2524
* attr method value
@@ -132,7 +131,7 @@ class SC_LAZYFILE_EXPORT lazyRefs {
132131
bool found = false;
133132
if( sa.getADesc()->IsAggrType() ) {
134133
//aggregate - search for current inst id
135-
EntityAggregate * aggr = dynamic_cast< EntityAggregate * >( sa.Aggregate());
134+
EntityAggregate * aggr = dynamic_cast< EntityAggregate * >( sa.Aggregate() );
136135
assert( aggr );
137136
EntityNode * en = ( EntityNode * ) aggr->GetHead();
138137
while( en ) {
@@ -180,7 +179,7 @@ class SC_LAZYFILE_EXPORT lazyRefs {
180179
}
181180
std::cerr << "Error! inverse attr " << ia->Name() << " (" << ia << ") not found in iAMap for entity " << inst->getEDesc()->Name() << std::endl;
182181
abort();
183-
iAstruct nil;
182+
iAstruct nil = {nullptr};
184183
return nil;
185184
}
186185

src/clstepcore/sdaiApplication_instance.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ const SDAI_Application_instance::iAMap_t::value_type SDAI_Application_instance::
946946
}
947947
iAstruct z;
948948
memset( &z, 0, sizeof z );
949-
iAMap_t::value_type nil( nullptr, z );
949+
iAMap_t::value_type nil( (Inverse_attribute *) nullptr, z );
950950
return nil;
951951
}
952952

src/clstepcore/sdaiApplication_instance.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef STEPENTITY_H
2-
#define STEPENTITY_H 1
2+
#define STEPENTITY_H
33

44
/*
55
* NIST STEP Core Class Library
@@ -197,4 +197,4 @@ class SC_CORE_EXPORT SDAI_Application_instance : public SDAI_DAObject_SDAI {
197197
typedef SDAI_Application_instance * SDAI_Application_instance_ptr;
198198
typedef SDAI_Application_instance_ptr SDAI_Application_instance_var;
199199

200-
#endif
200+
#endif //STEPENTITY_H

0 commit comments

Comments
 (0)