Fix a bunch of warnings

Mostly adding __unused where needed.

Change-Id: Ia4f675b9b360782728c361ed1699db0cc277c3a5
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 6780e1d..12e88dd 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -235,7 +235,7 @@
 	}
 	fclose(f);
 	if (out_len < 2) {
-		LOGINFO("Successfully decrypted '%s' but read length %i too small.\n", fn.c_str(), out_len);
+		LOGINFO("Successfully decrypted '%s' but read length too small.\n", fn.c_str());
 		free(buffer_out);
 		return 1; // Decrypted successfully
 	}