Page MenuHome GnuPG

346_0001-Fix-use-of-inline-to-avoid-multiple-declarations.patch
AbandonedPublic

Authored by mgorny on Jun 13 2012, 9:40 AM.

Details

Reviewers
None
Summary

From 0f9211dd66dcf4e3d9fe4b08baaf7feca722bebd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@mgorny.alt.pl>
Date: Tue, 12 Jun 2012 23:19:22 +0200
Subject: [PATCH] Fix use of inline to avoid multiple declarations.

The current code can result in multiple declarations of inline functions
which will fail at linking stage. This patch fixes that by adding
the 'inline' keywords to their prototypes as required by the C standard,
and removing 'extern'.

The patch was tested both with GNUC block enabled and disabled.

mpi/mpi-inline.h | 2 +-
mpi/mpi-internal.h | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

1.7.10.2

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped