Re 2da39de "fbsd-nat: Pacify gcc with no functional changes"

Arsen Arsenović via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi,

This patch seems to have broken building GDB on
x86_64-portbld-freebsd13.1 for me.  In the following hunk...

  @@ -2094,6 +2092,9 @@ fbsd_nat_target::detach (inferior *inf, int from_tty)
                            }
                        }
                    }
  +#else
  +                 /* pacify gcc  */
  +                 wptid = (void) null_ptid;
   #endif
                    sig = 0;
                    break;

... in the #else branch, there's a cast which I can't discern the
purpose of.  The type of wptid is the same as the type of null_ptid, and
a cast to void as an rvalue doesn't make sense.  Dropping the cast
results in the build working again (and no warnings).

Did you mean for this line to be 'wptid = null_ptid'?

TIA, have a lovely night :-)
-- 
Arsen Arsenović
signature.asc (application/pgp-signature, 381 B)
-----BEGIN PGP SIGNATURE-----

iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZRIbn18UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosST9W0A/1MMoV3vox1aPe90HaawjCENL5C1EZmBXg9Y
40j5HVpRAQCAEJc51Zpx9JOljugGAAObDw/OINfNMNER6ou0DqeaAg==
=Frl1
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.