summaryrefslogtreecommitdiff
path: root/board/chocodile_vpdmcu
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-06-06 18:54:13 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-07 21:23:50 +0000
commit8d395e29b571878a3ed71652454621b7338b8343 (patch)
treed30c87e5d220f163f827076364b3f6da32de36e8 /board/chocodile_vpdmcu
parent2e3ec3604f774d9c7bb9eaf0aaf339b4a8cbd9cd (diff)
downloadchrome-ec-8d395e29b571878a3ed71652454621b7338b8343.tar.gz
get rid of compiler warnings
The upcoming change of the set of gcc invocation flags would trigger a warnings about a potentially uninitialized variable use. Even though the variables are guaranteed to be initialized in the two cases being touched, let's just pacify the compiler so that in places where it is important we do get the uninitialized variable warning and compilation failure. BRANCH=cr50, cr50-mp BUG=b:134623681 TEST='make buildall -j' succeeds with the new compiler invocation Change-Id: I5ac392d7628931d9e02ea153b3c8a2e7c285050d Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1648923 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'board/chocodile_vpdmcu')
-rw-r--r--board/chocodile_vpdmcu/vpd_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/chocodile_vpdmcu/vpd_api.c b/board/chocodile_vpdmcu/vpd_api.c
index ecbedd082f..857ca46d1c 100644
--- a/board/chocodile_vpdmcu/vpd_api.c
+++ b/board/chocodile_vpdmcu/vpd_api.c
@@ -144,8 +144,8 @@ void vpd_ct_set_pull(int pull, int rp_value)
void vpd_ct_get_cc(int *cc1, int *cc2)
{
- int cc1_v;
- int cc2_v;
+ int cc1_v = 0;
+ int cc2_v = 0;
switch (ct_cc_pull) {
case TYPEC_CC_RP: