From: Thomas Huth Date: Sat, 22 Aug 2020 08:11:18 +0000 (+0200) Subject: Mark the nfgenerated variable with NOWARN_UNUSED X-Git-Tag: 4900~328^2^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=88a781dd24dc059764361fe2c7ff2a1133fc9701;p=francis%2Fwinuae.git Mark the nfgenerated variable with NOWARN_UNUSED The variable is only used if NOFLAGS_SUPPORT_GENCPU is not set, so GCC emits a compiler warning about a set-but-unused variable here. Let's use the NOWARN_UNUSED() macro to suppress the unnecessary warning in this case. --- diff --git a/gencpu.cpp b/gencpu.cpp index 4b031af6..2a9196aa 100644 --- a/gencpu.cpp +++ b/gencpu.cpp @@ -9450,7 +9450,7 @@ static void generate_one_opcode (int rp, const char *extra) printf("%s", outbuffer); // generate noflags variant if needed - int nfgenerated = 0; + NOWARN_UNUSED(int nfgenerated = 0); if (using_noflags && table68k[opcode].flagdead != 0 && !disable_noflags) { convert_to_noflags(outbuffer); printf("%s", outbuffer);