summaryrefslogtreecommitdiffhomepage
path: root/dev/boot
diff options
context:
space:
mode:
Diffstat (limited to 'dev/boot')
-rw-r--r--dev/boot/modules/SysChk/SysChk.cc1
-rw-r--r--dev/boot/src/BootTextWriter.cc16
2 files changed, 15 insertions, 2 deletions
diff --git a/dev/boot/modules/SysChk/SysChk.cc b/dev/boot/modules/SysChk/SysChk.cc
index 4f71ee31..1601148e 100644
--- a/dev/boot/modules/SysChk/SysChk.cc
+++ b/dev/boot/modules/SysChk/SysChk.cc
@@ -34,6 +34,7 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) {
#elif defined(__AHCI__)
Boot::BDiskFormatFactory<BootDeviceSATA> partition_factory;
#endif
+
if (partition_factory.IsPartitionValid()) return kEfiOk;
return partition_factory.Format(kMachineModel);
diff --git a/dev/boot/src/BootTextWriter.cc b/dev/boot/src/BootTextWriter.cc
index 5e826c6d..6ffb7de6 100644
--- a/dev/boot/src/BootTextWriter.cc
+++ b/dev/boot/src/BootTextWriter.cc
@@ -24,6 +24,8 @@
@brief puts wrapper over EFI ConOut.
*/
Boot::BootTextWriter& Boot::BootTextWriter::Write(const CharacterTypeUTF16* str) {
+ NE_UNUSED(str);
+
#ifdef __DEBUG__
if (!str || *str == 0) return *this;
@@ -50,6 +52,8 @@ Boot::BootTextWriter& Boot::BootTextWriter::Write(const CharacterTypeUTF16* str)
/// @brief UTF-8 equivalent of Write (UTF-16).
/// @param str the input string.
Boot::BootTextWriter& Boot::BootTextWriter::Write(const Char* str) {
+ NE_UNUSED(str);
+
#ifdef __DEBUG__
if (!str || *str == 0) return *this;
@@ -74,6 +78,8 @@ Boot::BootTextWriter& Boot::BootTextWriter::Write(const Char* str) {
}
Boot::BootTextWriter& Boot::BootTextWriter::Write(const UChar* str) {
+ NE_UNUSED(str);
+
#ifdef __DEBUG__
if (!str || *str == 0) return *this;
@@ -101,6 +107,8 @@ Boot::BootTextWriter& Boot::BootTextWriter::Write(const UChar* str) {
@brief putc wrapper over EFI ConOut.
*/
Boot::BootTextWriter& Boot::BootTextWriter::WriteCharacter(CharacterTypeUTF16 c) {
+ NE_UNUSED(c);
+
#ifdef __DEBUG__
EfiCharType str[2];
@@ -113,6 +121,8 @@ Boot::BootTextWriter& Boot::BootTextWriter::WriteCharacter(CharacterTypeUTF16 c)
}
Boot::BootTextWriter& Boot::BootTextWriter::Write(const UInt64& x) {
+ NE_UNUSED(x);
+
#ifdef __DEBUG__
this->_Write(x);
this->Write("h");
@@ -122,6 +132,8 @@ Boot::BootTextWriter& Boot::BootTextWriter::Write(const UInt64& x) {
}
Boot::BootTextWriter& Boot::BootTextWriter::_Write(const UInt64& x) {
+ NE_UNUSED(x);
+
#ifdef __DEBUG__
UInt64 y = (x > 0 ? x : -x) / 16;
UInt64 h = (x > 0 ? x : -x) % 16;
@@ -136,9 +148,9 @@ Boot::BootTextWriter& Boot::BootTextWriter::_Write(const UInt64& x) {
if (y == ~0UL) y = -y;
- const char cNumbers[] = "0123456789ABCDEF";
+ const char kNumberList[] = "0123456789ABCDEF";
- this->WriteCharacter(cNumbers[h]);
+ this->WriteCharacter(kNumberList[h]);
#endif // ifdef __DEBUG__
return *this;