X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fbinarybuffer.h;fp=src%2Fhelper%2Fbinarybuffer.h;h=3f2481d9a215e7d6e48cb634f1ee5ad32cda6fbb;hp=7ac221e47b345e84c3dd2673097bc4a5b561a729;hb=a2e822834df52efef5e1bbcb91a6eb1afbf102db;hpb=4e981bc27c36e696dc8ace3ab4bab534564770c1 diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index 7ac221e47b..3f2481d9a2 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -33,6 +33,7 @@ * using the bits in @c value. This routine fast-paths writes * of little-endian, byte-aligned, 32-bit words. * @param _buffer The buffer whose bits will be set. + * Do not use uninitialized buffer or clang static analyzer emits a warning. * @param first The bit offset in @c _buffer to start writing (0-31). * @param num The number of bits from @c value to copy (1-32). * @param value Up to 32 bits that will be copied to _buffer. @@ -62,6 +63,7 @@ static inline void buf_set_u32(uint8_t *_buffer, * using the bits in @c value. This routine fast-paths writes * of little-endian, byte-aligned, 64-bit words. * @param _buffer The buffer whose bits will be set. + * Do not use uninitialized buffer or clang static analyzer emits a warning. * @param first The bit offset in @c _buffer to start writing (0-63). * @param num The number of bits from @c value to copy (1-64). * @param value Up to 64 bits that will be copied to _buffer.