From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f68.google.com ([209.85.160.68]:40157 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbeCTSVM (ORCPT ); Tue, 20 Mar 2018 14:21:12 -0400 Received: by mail-pl0-f68.google.com with SMTP id x4-v6so1505838pln.7 for ; Tue, 20 Mar 2018 11:21:12 -0700 (PDT) From: Stephen Hemminger To: netdev@vger.kernel.org Cc: Stephen Hemminger Subject: [PATCH iproute2 v2 0/9] gcc-8 warning fixes Date: Tue, 20 Mar 2018 11:19:34 -0700 Message-Id: <20180320181943.4075-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org List-ID: This fixes most of the warnings when building with gcc-8. Still have issues with namespace and bpf. Stephen Hemminger (9): bridge: avoid snprint truncation on time pedit: fix strncpy warning ip: use strlcpy() to avoid truncation tunnel: use strlcpy to avoid strncpy warnings namespace: fix warning snprintf buffer tc_class: fix snprintf warning ematch: fix possible snprintf overflow misc: avoid snprintf warnings in ss and nstat bpf: avoid compiler warnings about strncpy bridge/mdb.c | 4 ++-- ip/iplink.c | 14 +++++++------- ip/tunnel.c | 12 ++++++------ lib/bpf.c | 6 +++--- lib/namespace.c | 6 ++++-- misc/nstat.c | 4 ++-- misc/ss.c | 2 +- tc/m_ematch.c | 2 +- tc/m_pedit.c | 2 +- tc/tc_class.c | 5 +++-- 10 files changed, 30 insertions(+), 27 deletions(-) -- 2.16.2