Skip to content

Commit 0ef026c

Browse files
Avoid spurious -O3 warning (#770)
Fixes #768
1 parent 5787b4c commit 0ef026c

File tree

10 files changed

+13
-11
lines changed

10 files changed

+13
-11
lines changed

cores/rp2040/FS.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ enum SeekMode {
5050

5151
class File : public Stream {
5252
public:
53-
File(FileImplPtr p = FileImplPtr(), FS *baseFS = nullptr) : _p(p), _fakeDir(nullptr), _baseFS(baseFS) { }
53+
File(FileImplPtr p = FileImplPtr(), FS *baseFS = nullptr) : _p(p), _fakeDir(nullptr), _baseFS(baseFS) {
54+
_startMillis = millis(); /* workaround -O3 spurious warning #768 */
55+
}
5456

5557
// Print methods:
5658
size_t write(uint8_t) override;

docs/ide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for normal operations.
3838
Generic RP2040 Support
3939
----------------------
4040
If your RP2040 board isn't in the menus you can still use it with the
41-
IDE bu using the `Board->Generic RP2040` menu option. You will need to
41+
IDE by using the `Board->Generic RP2040` menu option. You will need to
4242
then set the flash size (see above) and tell the IDE how to communicate
4343
with the flash chip using the `Tools->Boot Stage 2` menu.
4444

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The Arduino-Pico core can be installed using the Arduino IDE Boards Manager
55
or using `git`. If you want to simply write programs for your RP2040 board,
66
the Boards Manager installation will suffice, but if you want to try the
77
latest pre-release versions and submit improvements, you will need the `git`
8-
instllation.
8+
installation.
99

1010
Installing via Arduino Boards Manager
1111
-------------------------------------

docs/wifi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
WiFi (Raspberry Pi Pico W) Support
22
==================================
33

4-
WiFi is supported on the Raspberry Pi Pico W by selecting the "Raspbery Pi Pico W" board in the Boards Manager. It is generally compatible with the `Arduino WiFi library <https://www.arduino.cc/en/Reference/WiFi>`__ and the `ESP8266 Arduino WiFi library <https://github.com/esp8266/Arduino>`__.
4+
WiFi is supported on the Raspberry Pi Pico W by selecting the "Raspberry Pi Pico W" board in the Boards Manager. It is generally compatible with the `Arduino WiFi library <https://www.arduino.cc/en/Reference/WiFi>`__ and the `ESP8266 Arduino WiFi library <https://github.com/esp8266/Arduino>`__.
55

66
Enable WiFi support by selecting the `Raspberry Pi Pico W` board in the IDE and adding ``#include <WiFi.h>`` in your sketch.
77

libraries/I2S/src/I2S.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class I2S : public Stream {
7474
return write((uint32_t)s);
7575
}
7676

77-
// Write 32 bit value to port, user responsbile for packing/alignment, etc.
77+
// Write 32 bit value to port, user responsible for packing/alignment, etc.
7878
size_t write(int32_t val, bool sync);
7979

8080
// Write sample to I2S port, will block until completed
@@ -83,7 +83,7 @@ class I2S : public Stream {
8383
size_t write24(int32_t l, int32_t r); // Note that 24b must have values left-aligned (i.e. 0xABCDEF00)
8484
size_t write32(int32_t l, int32_t r);
8585

86-
// Read 32 bit value to port, user responsbile for packing/alignment, etc.
86+
// Read 32 bit value to port, user responsible for packing/alignment, etc.
8787
size_t read(int32_t *val, bool sync);
8888

8989
// Read samples from I2S port, will block until data available

libraries/LEAmDNS/src/LEAmDNS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ class MDNSResponder {
11001100
};
11011101

11021102
public:
1103-
uint16_t m_u16ID; // Query ID (used only in lagacy queries)
1103+
uint16_t m_u16ID; // Query ID (used only in legacy queries)
11041104
stcMDNS_RRQuestion* m_pQuestions; // A list of queries
11051105
uint8_t m_u8HostReplyMask; // Flags for reply components/answers
11061106
bool m_bLegacyQuery; // Flag: Legacy query

libraries/LEAmDNS/src/LEAmDNS_Control.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ uint8_t MDNSResponder::_replyMaskForHost(const MDNSResponder::stcMDNS_RRHeader&
19801980
#ifdef MDNS_IP6_SUPPORT
19811981
// TODO
19821982
#endif
1983-
} // Address qeuest
1983+
} // Address quest
19841984

19851985
stcMDNS_RRDomain hostDomain;
19861986
if ((_buildDomainForHost(m_pcHostname, hostDomain))

libraries/WiFi/src/WiFiClientSecureBearSSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ bool WiFiClientSecureCtx::_connectSSL(const char* hostName) {
12241224
_x509_insecure = nullptr;
12251225
_x509_knownkey = nullptr;
12261226

1227-
// reduce timeout after successful handshake to fail fast if server stop accepting our data for whathever reason
1227+
// reduce timeout after successful handshake to fail fast if server stop accepting our data for whatever reason
12281228
if (ret) {
12291229
_timeout = 5000;
12301230
}

libraries/WiFi/src/wl_definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern "C" {
4343
#define WL_IPV4_LENGTH 4
4444
// Maximum size of a SSID list
4545
#define WL_NETWORKS_LIST_MAXNUM 10
46-
// Maxmium number of socket
46+
// Maximum number of socket
4747
#define WIFI_MAX_SOCK_NUM 10
4848
// Socket not available constant
4949
#define SOCK_NOT_AVAIL 255

libraries/rp2040/examples/Bootsel/Bootsel.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Simple sketch to do something on a BOOTSEL press */
2-
/* Releaed into the public domain */
2+
/* Released into the public domain */
33

44
void setup() {
55
Serial.begin(115200);

0 commit comments

Comments
 (0)