mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-29 15:22:12 +02:00
Merge "Add WEBP_SELF_ASSIGN macro" into main
This commit is contained in:
@@ -110,4 +110,9 @@
|
|||||||
#define WEBP_UNSAFE_FORGE_BIDI_INDEXABLE(typ, ptr, size) ((typ)(ptr))
|
#define WEBP_UNSAFE_FORGE_BIDI_INDEXABLE(typ, ptr, size) ((typ)(ptr))
|
||||||
|
|
||||||
#endif // WEBP_SUPPORT_FBOUNDS_SAFETY
|
#endif // WEBP_SUPPORT_FBOUNDS_SAFETY
|
||||||
|
|
||||||
|
// This macro exists to indicate intentionality with self-assignments and
|
||||||
|
// silence -Wself-assign compiler warnings.
|
||||||
|
#define WEBP_SELF_ASSIGN(x) x = x
|
||||||
|
|
||||||
#endif // WEBP_UTILS_BOUNDS_SAFETY_H_
|
#endif // WEBP_UTILS_BOUNDS_SAFETY_H_
|
||||||
|
Reference in New Issue
Block a user