File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,15 @@ typedef struct _dftd4_param* dftd4_param;
6161
6262/// Obtain library version as major * 10000 + minor + 100 + patch
6363DFTD4_API_ENTRY int DFTD4_API_CALL
64- dftd4_get_version () DFTD4_API_SUFFIX__V_3_0 ;
64+ dftd4_get_version (void ) DFTD4_API_SUFFIX__V_3_0 ;
6565
6666/*
6767 * Error handle class
6868**/
6969
7070/// Create new error handle object
7171DFTD4_API_ENTRY dftd4_error DFTD4_API_CALL
72- dftd4_new_error () DFTD4_API_SUFFIX__V_3_0 ;
72+ dftd4_new_error (void ) DFTD4_API_SUFFIX__V_3_0 ;
7373
7474/// Check error handle status
7575DFTD4_API_ENTRY int DFTD4_API_CALL
Original file line number Diff line number Diff line change @@ -89,11 +89,12 @@ int test_example(void)
8989 hessian = (double * )malloc (nat3_sq * sizeof (double ));
9090 c6 = (double * )malloc (nat_sq * sizeof (double ));
9191
92+ dftd4_error error = NULL ;
93+
9294 if (dftd4_get_version () <= 0 ) {
9395 goto err ;
9496 }
9597
96- dftd4_error error ;
9798 dftd4_structure mol ;
9899 dftd4_model disp ;
99100 dftd4_param param ;
You can’t perform that action at this time.
0 commit comments