GNU bug report logs - #34237
small patch to ltdl.c to silence clang warnings

Previous Next

Package: libtool;

Reported by: Rupert Gallagher <ruga <at> protonmail.com>

Date: Mon, 28 Jan 2019 19:14:01 UTC

Severity: normal

Full log


Message #8 received at 34237 <at> debbugs.gnu.org (full text, mbox):

From: Mike Frysinger <vapier <at> gentoo.org>
To: Rupert Gallagher <ruga <at> protonmail.com>
Cc: 34237 <at> debbugs.gnu.org, "bug-libtool <at> gnu.org" <bug-libtool <at> gnu.org>
Subject: Re: small patch to ltdl.c to silence clang warnings
Date: Sun, 14 Jan 2024 03:34:38 +0000 (UTC)
> --- libltdl/ltdl.c
> +++ libltdl/ltdl.c
> @@ -1372,7 +1372,7 @@
>
> -	  if (!file && *sys_dlsearch_path)
> +	  if ((!file) & *sys_dlsearch_path)
> ...
> -      if (!is_done && *sys_dlsearch_path)
> +      if ((!is_done) & *sys_dlsearch_path)

this is def incorrect.  you're doing a bitwise operation on a pointer.

can you please post example compiler output ?
-mike




This bug report was last modified 1 year and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.