Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 791e72b

Browse files
committedSep 7, 2023
Allow tests to run on systems with case-insensive files.
Also adds pragmas to suppress warnings treated as fatal
1 parent d8d0b6a commit 791e72b

File tree

76 files changed

+106
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+106
-82
lines changed
 

‎api/IPAddress.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,26 @@ IPAddress::IPAddress(const char *address)
9696

9797
String IPAddress::toString4() const
9898
{
99+
#pragma GCC diagnostic push
100+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
99101
char szRet[16];
100102
sprintf(szRet,"%u.%u.%u.%u", _address.bytes[IPADDRESS_V4_BYTES_INDEX], _address.bytes[IPADDRESS_V4_BYTES_INDEX + 1], _address.bytes[IPADDRESS_V4_BYTES_INDEX + 2], _address.bytes[IPADDRESS_V4_BYTES_INDEX + 3]);
101103
return String(szRet);
104+
#pragma GCC diagnostic pop
102105
}
103106

104107
String IPAddress::toString6() const
105108
{
109+
#pragma GCC diagnostic push
110+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
106111
char szRet[40];
107112
sprintf(szRet,"%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x",
108113
_address.bytes[0], _address.bytes[1], _address.bytes[2], _address.bytes[3],
109114
_address.bytes[4], _address.bytes[5], _address.bytes[6], _address.bytes[7],
110115
_address.bytes[8], _address.bytes[9], _address.bytes[10], _address.bytes[11],
111116
_address.bytes[12], _address.bytes[13], _address.bytes[14], _address.bytes[15]);
112117
return String(szRet);
118+
#pragma GCC diagnostic pop
113119
}
114120

115121
String IPAddress::toString() const

‎api/deprecated-avr-comp/avr/dtostrf.c.impl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@
2929
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
3030
asm(".global _printf_float");
3131

32+
#pragma GCC diagnostic push
33+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
3234
char fmt[20];
3335
sprintf(fmt, "%%%d.%df", width, prec);
3436
sprintf(sout, fmt, val);
3537
return sout;
38+
#pragma GCC diagnostic pop
3639
}
3740

0 commit comments

Comments
 (0)
Please sign in to comment.