Home GnuPG

Avoid breakage with gcc 5
c01c8f0c4f55Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Avoid breakage with gcc 5

* src/Makefile.am: Add -P to the C preprocessor when building
mkerrcodes.h, to avoid a noisy intermediate pipeline.

With gcc 5 without this patch, we see many errors like the following:

gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
In file included from ./mkerrcodes.c:26:0:
./mkerrcodes.h:9:5: error: expected expression before ‘,’ token

{ , "GPG_ERR_E2BIG" },
  ^

./mkerrcodes.h:10:5: error: expected expression before ‘,’ token

{ , "GPG_ERR_EACCES" },
  ^

This patch cleans up the generated mkerrcodes.h by making the
intermediate stage clean for all the versions of gcc i tested (4.x and
5).

  • Debian-Bug-Id: #777374
  • Signed-Off-By: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Mar 16 2015, 6:40 PM
wernerCommitted on Mar 24 2015, 9:48 AM
Parents
rE528ee704f8f9: Add option --defines to gpg-error.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rEc01c8f0c4f55: Avoid breakage with gcc 5 (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Mar 24 2015, 9:48 AM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:06 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:29 PM