forknote / monero-generator

Generate Monero based coins with 1 command
MIT License
20 stars 33 forks source link

Use strcmp instead of direct comparison #6

Closed jwinterm closed 6 years ago

jwinterm commented 6 years ago

GCC-7 doesn't like it when comparing string literal with something that might not be and throws Werror.

charles-boyd commented 6 years ago

I got it to work by running:

sed -e 's/CRYPTONOTE_NAME == \\"monero\\"/strcmp(CRYPTONOTE_NAME, \\"monero\\" == 0)/ig' extensions/core/monero.json -i