From: Daniel Wagner <wagi@monom.org> To: "VAUTRIN Emmanuel (Canal Plus Prestataire)" <Emmanuel.VAUTRIN@cpexterne.org> Cc: "connman@lists.linux.dev" <connman@lists.linux.dev> Subject: Re: [PATCH] build: Fix compiler maybe-uninitialized warnings Date: Mon, 13 Sep 2021 09:27:19 +0200 [thread overview] Message-ID: <20210913072719.3qlnsqjzplntm265@beryllium.lan> (raw) In-Reply-To: <MRZP264MB15449CB6E42AF281B16F54FE93D99@MRZP264MB1544.FRAP264.PROD.OUTLOOK.COM> Hi Emmanuel, On Mon, Sep 13, 2021 at 07:17:13AM +0000, VAUTRIN Emmanuel (Canal Plus Prestataire) wrote: > > --- > src/config.c | 6 ++---- > src/dnsproxy.c | 2 +- > tools/ip6tables-test.c | 2 +- > tools/iptables-test.c | 2 +- > 4 files changed, 5 insertions(+), 7 deletions(-) > > diff --git a/src/config.c b/src/config.c > index 62023b1072da..33fdc7375c15 100644 > --- a/src/config.c > +++ b/src/config.c > @@ -1106,8 +1106,7 @@ static char *config_pem_fsid(const char *pem_file) > > static void provision_service_wifi(struct connman_config_service *config, > struct connman_service *service, > - struct connman_network *network, > - const void *ssid, unsigned int ssid_len) > + struct connman_network *network) > { > if (config->eap) > __connman_service_set_string(service, "EAP", config->eap); > @@ -1418,8 +1417,7 @@ static int try_provision_service(struct connman_config_service *config, > config->timeservers); > > if (type == CONNMAN_SERVICE_TYPE_WIFI) { > - provision_service_wifi(config, service, network, > - ssid, ssid_len); > + provision_service_wifi(config, service, network); > } > Could you split this into cleanup patch with a commit message? > __connman_service_mark_dirty(); > diff --git a/src/dnsproxy.c b/src/dnsproxy.c > index 4b65b3790bb9..fbbee0413f8f 100644 > --- a/src/dnsproxy.c > +++ b/src/dnsproxy.c > @@ -2707,7 +2707,7 @@ static void update_domain(int index, const char *domain, bool append) > for (list = server_list; list; list = list->next) { > struct server_data *data = list->data; > GList *dom_list; > - char *dom; > + char *dom = NULL; > bool dom_found = false; > > if (data->index < 0) Same here (maybe including the compiler warning). > diff --git a/tools/ip6tables-test.c b/tools/ip6tables-test.c > index 41e842dd64af..a52f4af04edf 100644 > --- a/tools/ip6tables-test.c > +++ b/tools/ip6tables-test.c > @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) > { > enum iptables_command cmd = IPTABLES_COMMAND_UNKNOWN; > char *table = NULL, *chain = NULL, *rule = NULL, *tmp; > - int err, c, i; > + int err = -EINVAL, c, i; > > opterr = 0; > > diff --git a/tools/iptables-test.c b/tools/iptables-test.c > index e9b7cb224d7a..f9d091eb9490 100644 > --- a/tools/iptables-test.c > +++ b/tools/iptables-test.c > @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) > { > enum iptables_command cmd = IPTABLES_COMMAND_UNKNOWN; > char *table = NULL, *chain = NULL, *rule = NULL, *tmp; > - int err, c, i; > + int err = -EINVAL, c, i; > > opterr = 0; > > -- > 2.25.1 For the tools/* fixes this is okay. Not really important stuff :) Daniel
next prev parent reply other threads:[~2021-09-13 7:27 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-13 7:17 VAUTRIN Emmanuel (Canal Plus Prestataire) 2021-09-13 7:27 ` Daniel Wagner [this message] 2021-09-13 7:45 ` VAUTRIN Emmanuel (Canal Plus Prestataire) 2021-09-20 7:22 ` Daniel Wagner 2021-09-20 8:15 ` VAUTRIN Emmanuel (Canal Plus Prestataire) 2021-10-18 7:26 ` Daniel Wagner
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210913072719.3qlnsqjzplntm265@beryllium.lan \ --to=wagi@monom.org \ --cc=Emmanuel.VAUTRIN@cpexterne.org \ --cc=connman@lists.linux.dev \ --subject='Re: [PATCH] build: Fix compiler maybe-uninitialized warnings' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.