mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
cleanup: Fix last instance of -Wcast-align
and enable the warning.
We used to have lots of these in the code, but now that all the endian stuff is no longer dependent on host byte order, we can re-enable the warning flag and catch any future violations.
This commit is contained in:
parent
2db6599be5
commit
101e235131
|
@ -386,7 +386,7 @@ static uint8_t response_callback_connection_id;
|
|||
static uint8_t response_callback_public_key[CRYPTO_PUBLIC_KEY_SIZE];
|
||||
static int response_callback(void *object, uint8_t connection_id, const uint8_t *public_key)
|
||||
{
|
||||
if (set_tcp_connection_number((TCP_Client_Connection *)((char *)object - 2), connection_id, 7) != 0) {
|
||||
if (set_tcp_connection_number((TCP_Client_Connection *)(void *)((char *)object - 2), connection_id, 7) != 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ clang++ -o /dev/null amalgamation.cc \
|
|||
-Wno-alloca \
|
||||
-Wno-c++98-compat-pedantic \
|
||||
-Wno-c99-extensions \
|
||||
-Wno-cast-align \
|
||||
-Wno-conversion \
|
||||
-Wno-covered-switch-default \
|
||||
-Wno-disabled-macro-expansion \
|
||||
|
|
Loading…
Reference in New Issue
Block a user