Keymaster: Use __attribute__ instead of __unused
Ensures that we don't rely on its definition somewhere else.
Change-Id: Ia4af22b562d2f5e2b56a8162b5896bcfadcf7df3
diff --git a/key_blob.cpp b/key_blob.cpp
index 08cf0d3..8670837 100644
--- a/key_blob.cpp
+++ b/key_blob.cpp
@@ -42,7 +42,7 @@
const uint8_t BLOB_VERSION = 0;
uint8_t* KeyBlob::Serialize(uint8_t* buf, const uint8_t* end) const {
- const uint8_t* start __unused = buf;
+ const uint8_t* start __attribute__((__unused__)) = buf;
*buf++ = BLOB_VERSION;
buf = append_size_and_data_to_buf(buf, end, nonce(), NONCE_LENGTH);
buf = append_size_and_data_to_buf(buf, end, encrypted_key_material(), key_material_length());