mirror of
https://github.com/jwinterm/monero-generator.git
synced 2026-10-17 05:11:26 +02:00
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.
This commit is contained in:
@@ -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)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user