summaryrefslogtreecommitdiff
path: root/util/nvramtool/cmos_lowlevel.c
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2012-09-11 12:13:39 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2012-09-11 08:32:30 +0200
commit534e61c4e6eb10deeaaebd0ead88ffe36c439927 (patch)
tree2a735fc23a906841a084baf1b86f7a7686002f39 /util/nvramtool/cmos_lowlevel.c
parentcf8bcfc9dd0dd4093ab9ce65be8bbdb242959f15 (diff)
downloadcoreboot-534e61c4e6eb10deeaaebd0ead88ffe36c439927.tar.xz
nvramtool: Remove the building warning on older gcc
Some older gcc requires the default entry in switch, otherwise build warning "enumeration value not handled in switch" will come up. Change-Id: Ic8ea9960e4aca599e0ea62ec345122c9df57e766 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1501 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'util/nvramtool/cmos_lowlevel.c')
-rw-r--r--util/nvramtool/cmos_lowlevel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/nvramtool/cmos_lowlevel.c b/util/nvramtool/cmos_lowlevel.c
index 55b1879ff0..ef0c3832b1 100644
--- a/util/nvramtool/cmos_lowlevel.c
+++ b/util/nvramtool/cmos_lowlevel.c
@@ -55,6 +55,7 @@ void select_hal(hal_t hal, void *data)
break;
#endif
case HAL_MEMORY:
+ default:
current_access = &memory_hal;
break;
}