From 88674453cee454de74bc18f84449f83ca762757d Mon Sep 17 00:00:00 2001 From: jw Date: Mon, 26 Feb 2018 08:49:32 -0800 Subject: [PATCH] Use strcmp instead of direct comparison GCC-7 doesn't like it when comparing string literal with something that might not be and throws Werror. --- extensions/core/monero.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/core/monero.json b/extensions/core/monero.json index 83c419f..6607652 100644 --- a/extensions/core/monero.json +++ b/extensions/core/monero.json @@ -588,7 +588,7 @@ "marker": "if (height() > 202612)", "parameters": { "text": [ - " if (height() > 202612 && CRYPTONOTE_NAME == \"monero\")" + " if (height() > 202612 && strcmp(CRYPTONOTE_NAME, \"monero\")) == 0)" ] } }, @@ -598,7 +598,7 @@ "marker": "if (height() > 685498)", "parameters": { "text": [ - " if (height() > 685498 && CRYPTONOTE_NAME == \"monero\")" + " if (height() > 685498 && strcmp(CRYPTONOTE_NAME, \"monero\")) == 0)" ] } } @@ -613,7 +613,7 @@ "marker": "if (string_tools::pod_to_hex(block_blob_hash) == correct_blob_hash_202612)", "parameters": { "text": [ - " if (string_tools::pod_to_hex(block_blob_hash) == correct_blob_hash_202612 && CRYPTONOTE_NAME == \"monero\")" + " if (string_tools::pod_to_hex(block_blob_hash) == correct_blob_hash_202612 && strcmp(CRYPTONOTE_NAME, \"monero\")) == 0" ] } }, @@ -623,7 +623,7 @@ "marker": "if (string_tools::pod_to_hex(res) == existing_block_id_202612)", "parameters": { "text": [ - " if (string_tools::pod_to_hex(res) == existing_block_id_202612 && CRYPTONOTE_NAME == \"monero\")" + " if (string_tools::pod_to_hex(res) == existing_block_id_202612 && strcmp(CRYPTONOTE_NAME, \"monero\")) == 0)" ] } }