aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
980 stars 632 forks source link

http_demo_s3_download: Use sizeof in designated initializers #1752

Closed yiting16 closed 2 years ago

yiting16 commented 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.

aggarg commented 2 years ago

Thank you for your contribution.