-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8391 from NREL/8312_build_warnings_v2
Fix #8312 - EnergyPlus Build Warnings on gcc >= 9
- Loading branch information
Showing
31 changed files
with
4,244 additions
and
3,944 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,31 +6,32 @@ | |
/// | ||
/// | ||
/// \author Thierry Stephane Nouidui, | ||
/// Simulation Research Group, | ||
/// Simulation Research Group, | ||
/// LBNL, | ||
/// [email protected] | ||
/// | ||
/// \date 2011-11-11 | ||
/// | ||
/// This header file defines the energyplus functions | ||
/// This header file defines the energyplus functions | ||
/// that mapped to fmiFunctions and will be exported | ||
/// in .dll | ||
/////////////////////////////////////////////////////// | ||
|
||
#include "FMI/fmiModelFunctions.h" | ||
#include "fmiModelTypes.h" | ||
#include <stdlib.h> | ||
/* Export fmi functions on Windows */ | ||
#ifdef _MSC_VER | ||
#define DllExport __declspec( dllexport ) | ||
#define DllImport __declspec( dllexport ) | ||
#define DllExport __declspec(dllexport) | ||
#define DllImport __declspec(dllexport) | ||
|
||
#else | ||
#define DllExport | ||
#endif | ||
|
||
/* make sure all compiler use the same alignment policies for structures */ | ||
#ifdef WIN32 | ||
#pragma pack(push,8) | ||
#pragma pack(push, 8) | ||
#endif | ||
|
||
/* Version number */ | ||
|
@@ -46,48 +47,46 @@ | |
EnergyPlus Functions for FMI for Co-Simulation | ||
****************************************************/ | ||
DllExport fmiComponent fmiEPlusInstantiateSlave(char* fmuResFolder, | ||
fmiInteger *sizefmuResFolder, fmiReal *timeOut, fmiInteger *visible, | ||
fmiInteger *interactive, fmiInteger *loggingOn, fmiInteger *index); | ||
DllExport fmiComponent fmiEPlusInstantiateSlave(char *fmuResFolder, | ||
fmiInteger *sizefmuResFolder, | ||
fmiReal *timeOut, | ||
fmiInteger *visible, | ||
fmiInteger *interactive, | ||
fmiInteger *loggingOn, | ||
fmiInteger *index); | ||
|
||
DllExport fmiStatus fmiEPlusInitializeSlave(fmiComponent *fmuInstance, | ||
fmiReal *tStart, fmiInteger *newStep, fmiReal *tStop, fmiInteger *index); | ||
DllExport fmiStatus fmiEPlusInitializeSlave(fmiComponent *fmuInstance, fmiReal *tStart, fmiInteger *newStep, fmiReal *tStop, fmiInteger *index); | ||
|
||
DllExport fmiStatus fmiEPlusGetReal(fmiComponent *fmuInstance, const fmiValueReference valRef [], | ||
fmiReal outValue[], fmiInteger *numOutputs, fmiInteger *index); | ||
DllExport fmiStatus | ||
fmiEPlusGetReal(fmiComponent *fmuInstance, const fmiValueReference valRef[], fmiReal outValue[], fmiInteger *numOutputs, fmiInteger *index); | ||
|
||
DllExport fmiStatus fmiEPlusSetReal(fmiComponent *fmuInstance, const fmiValueReference valRef[], | ||
fmiReal inpVal[], fmiInteger *numInputs, fmiInteger *index); | ||
DllExport fmiStatus | ||
fmiEPlusSetReal(fmiComponent *fmuInstance, const fmiValueReference valRef[], fmiReal inpVal[], fmiInteger *numInputs, fmiInteger *index); | ||
|
||
DllExport fmiStatus fmiEPlusDoStep(fmiComponent *fmuInstance, fmiReal *curCommPoint, | ||
fmiReal *commStepSize, fmiInteger *newStep, fmiInteger *index); | ||
DllExport fmiStatus fmiEPlusDoStep(fmiComponent *fmuInstance, fmiReal *curCommPoint, fmiReal *commStepSize, fmiInteger *newStep, fmiInteger *index); | ||
|
||
DllExport fmiStatus fmiEPlusFreeSlave(fmiComponent *fmuInstance, fmiInteger *index, fmiInteger *fmiEndSimulation); | ||
|
||
fmiStatus fmiEPlusResetSlave(fmiComponent *fmuInstance, fmiInteger *index); | ||
fmiStatus fmiEPlusResetSlave(fmiComponent *fmuInstance, fmiInteger *index); | ||
|
||
DllExport fmiInteger fmiEPlusUnpack(char* fmuName, char* fmuOutputWorkingFolder, | ||
fmiInteger *sizefmuName, fmiInteger *sizefmuOutputWorkingFolder); | ||
DllExport fmiInteger fmiEPlusUnpack(char *fmuName, char *fmuOutputWorkingFolder, fmiInteger *sizefmuName, fmiInteger *sizefmuOutputWorkingFolder); | ||
|
||
DllExport fmiInteger addLibPathCurrentWorkingFolder(char* trimfmuOutputWorkingFolder_wLiB, | ||
char* fmuWorkingFolder, fmiInteger *sizefmuWorkingFolder, fmiInteger *index); | ||
DllExport fmiInteger addLibPathCurrentWorkingFolder(char *trimfmuOutputWorkingFolder_wLiB, | ||
char *fmuWorkingFolder, | ||
fmiInteger *sizefmuWorkingFolder, | ||
fmiInteger *index); | ||
|
||
DllExport fmiValueReference getValueReferenceByNameFMUInputVariables(char* variableName, | ||
fmiInteger *sizeVariableName, fmiInteger *index); | ||
DllExport fmiValueReference getValueReferenceByNameFMUInputVariables(char *variableName, fmiInteger *sizeVariableName, fmiInteger *index); | ||
|
||
DllExport fmiValueReference getValueReferenceByNameFMUOutputVariables(char* variableName, | ||
fmiInteger *sizeVariableName, fmiInteger *index); | ||
DllExport fmiValueReference getValueReferenceByNameFMUOutputVariables(char *variableName, fmiInteger *sizeVariableName, fmiInteger *index); | ||
|
||
DllExport fmiInteger model_ID_GUID(char* fmuInstanceName, char* fmuWorkingFolder, | ||
fmiInteger *sizefmuWorkingFolder, fmiInteger *numInputs, | ||
fmiInteger *numOutputs); | ||
DllExport fmiInteger | ||
model_ID_GUID(char *fmuInstanceName, char *fmuWorkingFolder, fmiInteger *sizefmuWorkingFolder, fmiInteger *numInputs, fmiInteger *numOutputs); | ||
|
||
DllExport fmiInteger addFMURootFolderName(char* fmuOutputWorkingFolder, | ||
char* fmuWorkingFolder, fmiInteger *sizefmuWorkingFolder); | ||
DllExport fmiInteger addFMURootFolderName(char *fmuOutputWorkingFolder, char *fmuWorkingFolder, fmiInteger *sizefmuWorkingFolder); | ||
|
||
DllExport fmiInteger getfmiEPlusVersion(char* fmuWorkingFolder, | ||
fmiInteger *sizefmuWorkingFolder, char *fmiVersionNumber, fmiInteger *index); | ||
DllExport fmiInteger getfmiEPlusVersion(char *fmuWorkingFolder, fmiInteger *sizefmuWorkingFolder, char *fmiVersionNumber, fmiInteger *index); | ||
|
||
DllExport fmiInteger checkOperatingSystem(char* errorMessage); | ||
DllExport fmiInteger checkOperatingSystem(char *errorMessage); | ||
|
||
#endif // eplusModelFunctions_h |
Oops, something went wrong.