From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] test: fix incorrect cast in pipeline unit test Date: Sun, 13 May 2018 23:25:15 +0200 Message-ID: <1894270.LNU5T2NqhO@xps> References: <20180510073815.76926-1-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "De Lara Guarch, Pablo" , "Dumitrescu, Cristian" , "stable@dpdk.org" To: "Hunt, David" Return-path: In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > New warning with gcc 8.1: > > The table_action_stub_miss() function was incorrectly declared as returning a > > typedef of rte_pipeline_table_action_handler_miss, instead of what it should > > have been, an int. > > Changed this to declare the function as returning an int, and now when the > > action_handler_miss is set to table_action_stub_miss (cast as > > rte_pipeline_table_action_handler_miss), gcc 8.1 no longer complains about the > > cast. > > > > Fixes: 5205954791cb ("app/test: packet framework unit tests") > > > > Signed-off-by: David Hunt > > Missing "Cc: stable@dpdk.org". > > Acked-by: Pablo de Lara Applied, thanks