I get this compilation error for the WebClient example (and more Ethernet related sketches).
Usning Windows 10 with fresh install of 1.8.11
In file included from C:\Users\Hans\Downloads\TEST ARDUINO\arduino-1.8.11\libraries\Ethernet\src\Dns.cpp:8:0:
C:\Users\Hans\Downloads\TEST ARDUINO\arduino-1.8.11\libraries\Ethernet\src\Dns.cpp: In member function 'uint16_t DNSClient::BuildRequest(const char*)':
C:\Users\Hans\Downloads\TEST ARDUINO\arduino-1.8.11\libraries\Ethernet\src\utility/w5100.h:457:25: warning: result of '(256 << 8)' requires 18 bits to represent, but 'int' only has 16 bits [-Wshift-overflow=]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
C:\Users\Hans\Downloads\TEST ARDUINO\arduino-1.8.11\libraries\Ethernet\src\Dns.cpp:164:18: note: in expansion of macro 'htons'
twoByteBuffer = htons(QUERY_FLAG | OPCODE_STANDARD_QUERY | RECURSION_DESIRED_FLAG);
^~~~~
Sketch uses 16858 bytes (52%) of program storage space. Maximum is 32256 bytes.
Global variables use 952 bytes (46%) of dynamic memory, leaving 1096 bytes for local variables. Maximum is 2048 bytes.