diff options
author | Dimitri Staessens <[email protected]> | 2019-03-18 20:44:38 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2019-03-18 21:00:59 +0100 |
commit | bb724cad016fba5775e751c817df0a07136d223f (patch) | |
tree | 9c33310c5f45eb6afc62579c149f29eb45a8af26 /src/lib/instance_name.c | |
parent | 0d75cc553b584c0b5d55016af51a6fa9994ca49d (diff) | |
download | ouroboros-0.15.1.tar.gz ouroboros-0.15.1.zip |
ipcpd: Fix strict aliasing warning0.15.1
Some versions of gcc seem to give a positive on the strict aliasing
rule. It's absent from newer gcc versions or clang. However, rather
than disabling the check for older version, this small rewrite seems to
temporarily fix the false positive. Apparently, it's undefined
behaviour to simply cast a char/uint8_t buffer to a variable type
pointer and then dereference the type. A more elaborate patch to fix
the undefined behaviour is needed.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/instance_name.c')
0 files changed, 0 insertions, 0 deletions