Closed yiting16 closed 2 years ago
Issue #, if available:
Description of changes: Clang seems to be stricter than GCC that an element value of a structure must be a constant, otherwise an compile error of
"error: initializer element is not a compile-time constant"
is thrown. Use sizeof instead.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
Thank you for your contribution.
Issue #, if available:
Description of changes: Clang seems to be stricter than GCC that an element value of a structure must be a constant, otherwise an compile error of
"error: initializer element is not a compile-time constant"
is thrown. Use sizeof instead.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.