[DTrace-devel] [PATCH 01/61] Initialize variable to eliminate compile-time warning

Kris Van Hees kris.van.hees at oracle.com
Thu Jul 28 12:25:23 UTC 2022


Unnecessary because 4bfeea99b45 ("bpf: don't throw away CTF errors when doing
relocations") already does this.  The joy of parallel development (and slow
reviews - mea culpa).

On Fri, Jul 08, 2022 at 10:44:45AM -0400, eugene.loh--- via DTrace-devel wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
> ---
>  libdtrace/dt_cc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libdtrace/dt_cc.c b/libdtrace/dt_cc.c
> index fba54cb0..de8bef9d 100644
> --- a/libdtrace/dt_cc.c
> +++ b/libdtrace/dt_cc.c
> @@ -2380,7 +2380,7 @@ dt_link_construct(dtrace_hdl_t *dtp, const dt_probe_t *prp, dtrace_difo_t *dp,
>  				ctf_file_t *cfp = dtp->dt_shared_ctf;
>  				ctf_id_t type = ctf_lookup_by_name(cfp, "struct task_struct");
>  				ctf_membinfo_t ctm;
> -				int rc;
> +				ctf_id_t rc = CTF_ERR;
>  
>  				if (type == CTF_ERR)
>  					return -1;
> -- 
> 2.18.4
> 
> 
> _______________________________________________
> DTrace-devel mailing list
> DTrace-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/dtrace-devel



More information about the DTrace-devel mailing list