Skip to content
Snippets Groups Projects
Commit 8e091be3 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

chroma: copy: do not use an empty structure if SSE2 is not supported

Structures with no field should not be used, it's Undefined Behavior:
https://stackoverflow.com/questions/3849334/sizeof-empty-structure-is-0-in-c-and-1-in-c-why
parent 7ca7e13b
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,8 @@ typedef struct {
# ifdef CAN_COMPILE_SSE2
uint8_t *buffer;
size_t size;
# else
char dummy;
# endif
} copy_cache_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment