diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-06-18 22:46:36 +0200 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-06-19 00:05:26 +0200 |
commit | 02ec23abebcb271a16fae94f8e3659bb9282880d (patch) | |
tree | ee5ca40d013b282ec41acffcb0b3a554fd155c30 /MdeModulePkg/Bus/Ata | |
parent | 1f739a851ce8ea8c9c4d9c4c7a5862fd44ab6ab4 (diff) | |
download | edk2-02ec23abebcb271a16fae94f8e3659bb9282880d.tar.gz edk2-02ec23abebcb271a16fae94f8e3659bb9282880d.tar.bz2 edk2-02ec23abebcb271a16fae94f8e3659bb9282880d.zip |
EmbeddedPkg/GdbSerialLib: avoid left shift of negative quantity
Clang complains about left shifting a negative value being undefined.
EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c:151:30:
error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
OutputData = (UINT8)((~DLAB<<7)|((BreakSet<<6)|((Parity<<3)|((StopBits<<2)| Data))));
Redefine all bit pattern constants as unsigned to work around this.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'MdeModulePkg/Bus/Ata')
0 files changed, 0 insertions, 0 deletions