Skip to content

Commit

Permalink
Network: remove deactivation of compiler warnings with the pragma dir…
Browse files Browse the repository at this point in the history
…ective
  • Loading branch information
furbanc committed Jun 5, 2024
1 parent 5b56965 commit a4bde13
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 56 deletions.
4 changes: 0 additions & 4 deletions Components/Network/Driver/Modem_Null.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

#include "net_modem.h"

#ifdef __clang__
#pragma clang diagnostic ignored "-Wpadded"
#endif

/* Modem driver states */
enum Modem_State {
Modem_Idle,
Expand Down
4 changes: 0 additions & 4 deletions Components/Network/Driver/Modem_Standard.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

#include "net_modem.h"

#ifdef __clang__
#pragma clang diagnostic ignored "-Wpadded"
#endif

/* Modem driver states */
enum Modem_State {
Modem_Idle,
Expand Down
18 changes: 0 additions & 18 deletions Components/Network/Include/rl_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,6 @@ typedef struct sockaddr {
int8_t sa_data[14]; ///< Direct address (up to 14 bytes)
} SOCKADDR;

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc11-extensions"
#endif

#ifndef __DOXYGEN__

/// Generic IPv4 Address structure.
Expand All @@ -265,10 +260,6 @@ typedef struct in6_addr {

#endif

#if defined(__clang__)
#pragma clang diagnostic pop
#endif

/// BSD Internet Addresses IPv6.
extern const IN6_ADDR in6addr_any; ///< All IPv6 addresses accepted
extern const IN6_ADDR in6addr_loopback; ///< Localhost IPv6 address
Expand Down Expand Up @@ -722,11 +713,6 @@ typedef struct net_snmp_byte_str {
uint8_t data[]; ///< String content
} NET_SNMP_BYTE_STR;

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
#endif

/// FS Interface Time info
typedef struct net_fs_time {
uint8_t hr; ///< Hours [0..23]
Expand All @@ -737,10 +723,6 @@ typedef struct net_fs_time {
uint16_t year; ///< Year [1980..2107]
} NET_FS_TIME;

#if defined(__clang__)
#pragma clang diagnostic pop
#endif

/// FS Interface Attributes
#define NET_FS_ATTR_FILE 1 ///< File entry
#define NET_FS_ATTR_DIRECTORY 2 ///< Directory entry
Expand Down
15 changes: 0 additions & 15 deletions Components/Network/Source/net_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
* Purpose: Network Core Configuration
*----------------------------------------------------------------------------*/

#if defined(__clang__)
#pragma clang diagnostic ignored "-Wundef"
#pragma clang diagnostic ignored "-Wpadded"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#endif

#include "net_lib.h"

/* Interface configuration */
Expand Down Expand Up @@ -118,10 +112,6 @@
#endif

/* Check configuration integrity */
#if (!defined(NET_THREAD_STACK_SIZE))
#error "::Network:CORE: Configuration update required"
#endif

#if (ETH0_ENABLE && !defined(ETH0_THREAD_STACK_SIZE))
#error "::Network:Interface:ETH0: Configuration update required"
#endif
Expand Down Expand Up @@ -364,11 +354,6 @@
#error "::Network:Service:TFTP Client: Block Size out of range"
#endif

/* Check SMTP client attachments */
#if (SMTP_CLIENT_ENABLE && SMTP_CLIENT_ATTACH_ENABLE && !defined(RTE_FileSystem_Core))
#error "::Network:Service:SMTP Client: File System component required"
#endif

/* Check SMTP advanced client */
#if (SMTP_CLIENT_ENABLE && SMTP_CLIENT_ATTACH_ENABLE && !DNS_CLIENT_ENABLE)
#error "::Network:Service:SMTP Client: DNS Client service required"
Expand Down
7 changes: 0 additions & 7 deletions Components/Network/Source/net_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
#define __DEBUG_ENABLED
#endif

#if defined(__clang__)
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#elif (defined(__GNUC__) && defined(Network_Debug_EVR))
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wstringop-overread"
#endif

#ifdef Network_Debug_STDIO
#define DEBUGF(id,fmt,...) net_debug_info(id,fmt,##__VA_ARGS__)
#define ERRORF(id,fmt,...) net_debug_error(id,fmt,##__VA_ARGS__)
Expand Down
4 changes: 0 additions & 4 deletions Components/Network/Source/net_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ void net_evr_init (void) {
#include <stdio.h>
#include <stdarg.h>

#if defined(__clang__)
#pragma clang diagnostic ignored "-Wformat-nonliteral"
#endif

#if (NET_DEBUG_CHANNEL == 2)
#define __DEBUG_TIME net_debug_time()
#else
Expand Down
4 changes: 0 additions & 4 deletions Components/Network/Source/net_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#endif
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-Wpadded"
#endif

/// General definitions
#define NET_HEADER_LEN 4 ///< Network frame header length
#define PHY_HEADER_LEN 14 ///< Physical/ethernet header length
Expand Down

0 comments on commit a4bde13

Please sign in to comment.