From: Jasvinder Singh Date: Mon, 17 Oct 2016 10:51:16 +0000 (+0100) Subject: examples/ip_pipeline: fix build with gcc 6 X-Git-Tag: spdx-start~5506 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=sidebyside;h=3c55519274cfcf45b705bf7c77d5279a6e196dbf;p=dpdk.git examples/ip_pipeline: fix build with gcc 6 This patch fixes the misleading indentation error on compiling ip_pipeline app with gcc v6.2.1. Fixes: 3f2c9f3bb6c6 ("examples/ip_pipeline: add TAP port") Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- diff --git a/examples/ip_pipeline/app.h b/examples/ip_pipeline/app.h index 564996e709..f8b84e09ea 100644 --- a/examples/ip_pipeline/app.h +++ b/examples/ip_pipeline/app.h @@ -1152,7 +1152,7 @@ app_tap_get_writer(struct app_params *app, struct app_pktq_tap_params *tap, uint32_t *pktq_out_id) { - struct app_pipeline_params *writer; + struct app_pipeline_params *writer = NULL; uint32_t pos = tap - app->tap_params; uint32_t n_pipelines = RTE_MIN(app->n_pipelines, RTE_DIM(app->pipeline_params)); @@ -1168,10 +1168,11 @@ app_tap_get_writer(struct app_params *app, struct app_pktq_out_params *pktq = &p->pktq_out[j]; if ((pktq->type == APP_PKTQ_OUT_TAP) && - (pktq->id == pos)) + (pktq->id == pos)) { n_writers++; writer = p; id = j; + } } }