First off, I know that this problem is basically a no-brainer, and I should ignore the warning and move on with my day, but what is a science without seemingly meaningless questions answered.
The code runs just fine without me changing anything at the top. Everyone who used the web-server library knows the most efficient way to implement is to:
#include <WebServer.h>
WebServer server;
void setup() {
server.begin();
}
void loop() {
server.handleClient();
}
However, I’m interested if it could be declared as non-static/non-global. If it even can happen.