commit 789a7e7299a580f295d1abd327bb4acf063fd9f0
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Jan 28 01:26:49 2018 +0100

    Fix compilation warnings
    
    Nowadays' compilers are able to recognize memcpy and replace it
    appropriately without having to tell them so through a structure
    assignment. That also avoids warnings about type puning.
    
    * utils.c (WriteCopyType): Emit memcpy call instead of type-puned
    assignement.

diff --git a/utils.c b/utils.c
index d6a2b72..265a123 100644
--- a/utils.c
+++ b/utils.c
@@ -408,12 +408,11 @@ WriteCopyType(FILE *file, const ipc_type_t *it, const char *left,
     }
     else
     {
-	fprintf(file, "\t{ typedef struct { char data[%d]; } *sp; * (sp) ",
-		it->itTypeSize);
+	fprintf(file, "\tmemcpy(");
 	do_skip_vfprintf(file, left, right);
-	fprintf(file, " = * (sp) ");
+	fprintf(file, ", ");
 	do_skip_vfprintf(file, right, right);
-	fprintf(file, "; }\n");
+	fprintf(file, ", %d);\n", it->itTypeSize);
     }
 }
 
