Project

General

Profile

Bug #759

clang warning of implicit conversion from enumeration

Added by David Goulet about 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
03/10/2014
Due date:
% Done:

100%

Estimated time:

Description

  CC       kernel-consumer.lo
kernel-consumer.c:564:15: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                        ret_code = LTTNG_ERR_KERN_CHAN_NOT_FOUND;
                                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel-consumer.c:767:15: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                        ret_code = LTTNG_ERR_KERN_CHAN_NOT_FOUND;
                                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel-consumer.c:818:15: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                        ret_code = LTTNG_ERR_NO_CONSUMER;
                                 ~ ^~~~~~~~~~~~~~~~~~~~~
kernel-consumer.c:877:16: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                                ret_code = LTTNG_ERR_KERN_META_FAIL;
                                         ~ ^~~~~~~~~~~~~~~~~~~~~~~~
kernel-consumer.c:887:16: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                                ret_code = LTTNG_ERR_KERN_CHAN_FAIL;
                                         ~ ^~~~~~~~~~~~~~~~~~~~~~~~
kernel-consumer.c:908:15: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                        ret_code = LTTNG_ERR_KERN_CHAN_NOT_FOUND;
                                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
  CC       ust-consumer.lo
ust-consumer.c:1148:15: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                        ret_code = LTTNG_ERR_NO_CONSUMER;
                                 ~ ^~~~~~~~~~~~~~~~~~~~~
ust-consumer.c:1329:15: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                        ret_code = LTTNG_ERR_UST_CHAN_NOT_FOUND;
                                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ust-consumer.c:1485:16: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                                ret_code = LTTNG_ERR_UST_META_FAIL;
                                         ~ ^~~~~~~~~~~~~~~~~~~~~~~
ust-consumer.c:1495:16: warning: implicit conversion from enumeration type 'enum lttng_error_code' to
      different enumeration type 'enum lttcomm_return_code' [-Wenum-conversion]
                                ret_code = LTTNG_ERR_UST_CHAN_FAIL;
                                         ~ ^~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
#1

Updated by David Goulet almost 6 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF