mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-23 23:39:40 +00:00
Add void
in function declaration to keep some compilers happy (#4160)
fixes error: function declaration isn't a prototype [-Werror=strict-prototypes] Change-Id: I73dad8edbe82b5b481c6b87d773d6e6f8d191a45
This commit is contained in:
parent
4a59fd4763
commit
1746ed39d5
@ -671,7 +671,7 @@ SPIRV_TOOLS_EXPORT void spvOptimizerOptionsSetPreserveSpecConstants(
|
||||
// Creates a reducer options object with default options. Returns a valid
|
||||
// options object. The object remains valid until it is passed into
|
||||
// |spvReducerOptionsDestroy|.
|
||||
SPIRV_TOOLS_EXPORT spv_reducer_options spvReducerOptionsCreate();
|
||||
SPIRV_TOOLS_EXPORT spv_reducer_options spvReducerOptionsCreate(void);
|
||||
|
||||
// Destroys the given reducer options object.
|
||||
SPIRV_TOOLS_EXPORT void spvReducerOptionsDestroy(spv_reducer_options options);
|
||||
@ -698,7 +698,7 @@ SPIRV_TOOLS_EXPORT void spvReducerOptionsSetTargetFunction(
|
||||
// Creates a fuzzer options object with default options. Returns a valid
|
||||
// options object. The object remains valid until it is passed into
|
||||
// |spvFuzzerOptionsDestroy|.
|
||||
SPIRV_TOOLS_EXPORT spv_fuzzer_options spvFuzzerOptionsCreate();
|
||||
SPIRV_TOOLS_EXPORT spv_fuzzer_options spvFuzzerOptionsCreate(void);
|
||||
|
||||
// Destroys the given fuzzer options object.
|
||||
SPIRV_TOOLS_EXPORT void spvFuzzerOptionsDestroy(spv_fuzzer_options options);
|
||||
|
Loading…
Reference in New Issue
Block a user