intel / DML

Intel® Data Mover Library (Intel® DML)
https://intel.github.io/DML/
MIT License
85 stars 17 forks source link

build: Fix the Clang warning on -Wstrict-prototypes #27

Closed haiyuewa closed 1 year ago

haiyuewa commented 1 year ago

Add "void" to fix Clang build warning on: sources/core/src/sw_dispatcher/dml_cpuid.h:48:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] size_t dml_core_get_cache_size(); ^ void sources/core/src/sw_dispatcher/dml_cpuid.c:44:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] size_t dml_core_get_cache_size() ^ void 2 warnings generated.

haiyuewa commented 1 year ago

https://github.com/intel/DML/commit/00e40b3445e001ad87ead1c0fc31629bbffdac07