Home GnuPG

Add macro GPGRT_INLINE and avoid -Wundef warnings
9cd3f002addfUnpublished

Unpublished Commit · Learn More

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

Description

Add macro GPGRT_INLINE and avoid -Wundef warnings

* src/gpg-error.h.in (GPG_ERR_INLINE): Use #if defined for possible
undefined macros to avoid warnign with GCC's -Wundef option.
(GPGRT_INLINE): New.

I still consider using -Wundef for regular building a bad behaviour
because undefined macros have a well defined value in a cpp
conditional. That warning is useful for debugging build problems but
should not be used as standard warning option. Anyway, here is a fix.

Details

Provenance
wernerAuthored on Aug 26 2015, 8:41 AM
Parents
rE17e4f727d9bd: Update Ukrainian translation
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rE9cd3f002addf: Add macro GPGRT_INLINE and avoid -Wundef warnings (authored by Werner Koch <wk@gnupg.org>).Aug 26 2015, 8:41 AM