Home GnuPG
Diffusion Scute 49ad2b0e05e3

Do not declare global variable in header file.

Description

Do not declare global variable in header file.

* src/options.h (_scute_opt_t): New typedef.
(_scute_opt): Declare as extern and move definition to ...
* src/readconf.c (_scute_opt): here.

This fixes build with gcc-10, which has -fno-common enabled by
default.

  • GnuPG-bug-id: T5360
  • Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>

Details

Provenance
gouttegdAuthored on Mar 30 2021, 11:31 PM
Parents
rSab05fb64c143: build: Bump mimimum required Automake version.
Branches
Unknown
Tags
Unknown
Tasks
T5360: scute: -fcommon needed when building with gcc-10