Feng, YunhuaX
c5c0f5e23c
BaseTools: Fix make PcdValueCommon.c failure on GCC
...
error message:
PcdValueCommon.c: In function '__PcdGetPtr':
PcdValueCommon.c:315:11: error: variable 'Byte'
set but not used [-Werror=unused-but-set-variable]
UINT8 Byte;
^
cc1: all warnings being treated as errors
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
(cherry picked from commit 693877f8e5
)
2018-02-06 13:52:51 +08:00
Liming Gao
a55e485723
BaseTools CommonLib: Remove the unnecessary print message in PcdValueCommon
...
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
(cherry picked from commit 83ba30c5a3
)
2018-02-06 13:52:50 +08:00
Liming Gao
cd4ae3e155
BaseTools: CommonLib Fix Crash to write the last byte
...
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
(cherry picked from commit 4faf534046
)
2018-01-30 10:56:25 +08:00
Hao Wu
4f50b16caa
BaseTools/C/Common: Fix potential null pointer dereference
...
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
(cherry picked from commit 66329d53bd
)
2018-01-15 10:48:32 +08:00
Hao Wu
57bcc39da2
BaseTools/C/Common: Fix potential memory leak
...
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
(cherry picked from commit 1f7e7e70d2
)
2018-01-15 10:48:32 +08:00
Liming Gao
a908ec6d17
BaseTools CommonLib: Fix printf %llx issue on UINT64
...
UINT64 is defined as the different type for the different ARCHs. To
let it work for all archs and compilers, add (unsigned long long) for
the input value together with %llx.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
(cherry picked from commit beacbc7492
)
2018-01-12 09:07:05 +08:00
Liming Gao
309e37a229
BaseTools: Add PcdValueCommon logic into C source CommonLib
...
PcdValueCommon is used to calculate structure pcd value.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com >
2017-12-25 11:05:45 +08:00