examples/ip_pipeline: fix gcc v6.2.1 build error
PATCH 1/1 examples/ip_pipeline: fix gcc v6.2.1 build error
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 <[email protected]>
--- examples/ip_pipeline/app.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
examples/ip_pipeline/app.h +3 -2
@@ -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; + } } }
Signature · 1 line
2.5.5
Quoted 12 lines
-----Original Message-----
From: Singh, Jasvinder
Sent: Monday, October 17, 2016 11:51 AM
To: [email protected]
Cc: Dumitrescu, Cristian <[email protected]>
Subject: [PATCH] examples/ip_pipeline: fix gcc v6.2.1 build errorThis patch fixes the misleading indentation error on compiling
ip_pipelineapp with gcc v6.2.1.
Quoted 7 lines
Fixes 3f2c9f3bb6c6 ("examples/ip_pipeline: add TAP port")Signed-off-by Jasvinder Singh <[email protected]>--- examples/ip_pipeline/app.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Thomas Monjalon
AppliedQuoted 11 lines
Quoted 9 lines
This patch fixes the misleading indentation error on compiling
ip_pipelineapp with gcc v6.2.1.Fixes 3f2c9f3bb6c6 ("examples/ip_pipeline: add TAP port")Signed-off-by Jasvinder Singh <[email protected]>--- examples/ip_pipeline/app.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, thanks