Skip to content

Commit 1291fec

Browse files
authored
Merge pull request #443 from Asd-g/master
Fix GCC warnings
2 parents 16f9f74 + cb440a1 commit 1291fec

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

avs_core/include/avisynth_c.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ struct AVS_Value {
970970
// Should also set to avs_void after the value is released
971971
// with avs_copy_value. Consider it the equivalent of setting
972972
// a pointer to NULL
973-
static const AVS_Value avs_void = {'v'};
973+
static const AVS_Value avs_void = {'v', 0, {0}};
974974
// see also avs_set_to_void v11 API
975975

976976
/*******************************
@@ -1469,6 +1469,7 @@ AVSC_API(int64_t, avs_get_var_long)(AVS_ScriptEnvironment*, const char* name, in
14691469
FreeLibrary(HMODULE);
14701470
*/
14711471

1472+
#ifndef EXTERNAL_AVS_C_API_LOADER // If external loader is NOT active, then define these helpers
14721473

14731474
typedef struct AVS_Library AVS_Library;
14741475

@@ -1985,7 +1986,10 @@ AVSC_INLINE void avs_free_library(AVS_Library *library) {
19851986
FreeLibrary(library->handle);
19861987
free(library);
19871988
}
1988-
#endif
1989+
1990+
#endif // EXTERNAL_AVS_C_API_LOADER
1991+
1992+
#endif // AVSC_NO_DECLSPEC
19891993

19901994
#endif // AVS_WINDOWS
19911995

0 commit comments

Comments
 (0)