From: falcovorbis <fal...@us...> - 2023-03-13 03:52:15
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, warnings_fixes has been updated via ab924cb0e850aecf2eb46a758025504201def49f (commit) from a79f74634c51efe9329f76e9b8b804d436e32cc5 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit ab924cb0e850aecf2eb46a758025504201def49f Author: falco <gyr...@gm...> Date: Sun Mar 12 23:51:26 2023 -0400 Conditionally compiled out pack pragmas for <GCC12 - the warnings weren't even around on the testing and legacy toolchains. ----------------------------------------------------------------------- Summary of changes: addons/libkosfat/directory.c | 6 +++++- kernel/net/net_icmp6.c | 6 +++++- kernel/net/net_ipv6.c | 6 +++++- kernel/net/net_udp.c | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/addons/libkosfat/directory.c b/addons/libkosfat/directory.c index ad3c17e..66ee61c 100644 --- a/addons/libkosfat/directory.c +++ b/addons/libkosfat/directory.c @@ -18,8 +18,10 @@ #include "directory.h" #include "fatinternal.h" +#if __GNUC__ >= 12 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Waddress-of-packed-member" +#endif #ifdef __STRICT_ANSI__ /* These don't necessarily get prototyped in string.h in standard-compliant mode @@ -1395,4 +1397,6 @@ void fat_dentry_print(const fat_dentry_t *ent) { } #endif -#pragma GCC diagnostic pop \ No newline at end of file +#if __GNUC__ >= 12 +#pragma GCC diagnostic pop +#endif \ No newline at end of file diff --git a/kernel/net/net_icmp6.c b/kernel/net/net_icmp6.c index 12879eb..30d9cd7 100644 --- a/kernel/net/net_icmp6.c +++ b/kernel/net/net_icmp6.c @@ -16,8 +16,10 @@ #include "net_ipv6.h" #include "net_ipv4.h" /* For net_ipv4_checksum() */ +#if __GNUC__ >= 12 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Waddress-of-packed-member" +#endif /* This file implements RFC 4443, the Internet Control Message Protocol for IPv6. @@ -806,4 +808,6 @@ int net_icmp6_send_param_prob(netif_t *net, uint8 code, uint32 ptr, mc_allow); } -#pragma GCC diagnostic pop \ No newline at end of file +#if __GNUC__ >= 12 +#pragma GCC diagnostic pop +#endif \ No newline at end of file diff --git a/kernel/net/net_ipv6.c b/kernel/net/net_ipv6.c index c730a0e..b0260b5 100644 --- a/kernel/net/net_ipv6.c +++ b/kernel/net/net_ipv6.c @@ -15,8 +15,10 @@ #include "net_icmp6.h" #include "net_ipv4.h" +#if __GNUC__ >= 12 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Waddress-of-packed-member" +#endif static net_ipv6_stats_t ipv6_stats = { 0 }; const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; @@ -306,4 +308,6 @@ void net_ipv6_shutdown(void) { net_multicast_del(mac); } -#pragma GCC diagnostic pop \ No newline at end of file +#if __GNUC__ >= 12 +#pragma GCC diagnostic pop +#endif \ No newline at end of file diff --git a/kernel/net/net_udp.c b/kernel/net/net_udp.c index 39c5c74..5d68e37 100644 --- a/kernel/net/net_udp.c +++ b/kernel/net/net_udp.c @@ -23,8 +23,10 @@ #include "net_ipv4.h" #include "net_ipv6.h" +#if __GNUC__ >= 12 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Waddress-of-packed-member" +#endif /* Default hop limit (or ttl for IPv4) for new sockets */ #define UDP_DEFAULT_HOPS 64 @@ -1546,4 +1548,6 @@ void net_udp_shutdown(void) { fs_socket_proto_remove(&proto_lite); } -#pragma GCC diagnostic pop \ No newline at end of file +#if __GNUC__ >= 12 +#pragma GCC diagnostic pop +#endif \ No newline at end of file hooks/post-receive -- A pseudo Operating System for the Dreamcast. |