vanvught / rpidmx512

Orange Pi DMX512 / RDM / MIDI / OSC / Art-Net / WS28xx / L6470 / Stepper / TLC59711 / PCA9685 / Servo / PWM / TCNet / SMPTE / RDMNet / LLRP / GD32 / GigaDevice / Raspberry Pi
http://www.orangepi-dmx.org/
MIT License
398 stars 108 forks source link

lib-network/include/mdns.h:50:8: warning: Excessive padding in 'struct mdns::ServiceRecord' (13 padding bytes, where 5 is optimal). #212

Closed vanvught closed 3 years ago

vanvught commented 3 years ago
lib-network/include/mdns.h:50:8: warning: Excessive padding in 'struct mdns::ServiceRecord' (13 padding bytes, where 5 is optimal). 
Optimal fields order: 
pName, 
pServName, 
pTextContent, 
nPort, 
nProtocol, 
consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding]
struct ServiceRecord {
       ^
lib-network/include/mdns.h:50:8: note: Excessive padding in 'struct mdns::ServiceRecord' (13 padding bytes, where 5 is optimal). Optimal fields order: pName, pServName, pTextContent, nPort, nProtocol, consider reordering the fields or adding explicit padding members