Resolve __va_list_tag ** -> va_list * type errors with clang and future GCCs
authorGraeme Smecher <graeme.smecher@mail.mcgill.ca>
Thu, 3 Feb 2011 15:51:26 +0000 (07:51 -0800)
committerPetri Lehtinen <petri@digip.org>
Thu, 3 Feb 2011 18:41:54 +0000 (20:41 +0200)
commitdd7dd414f0968a2ca6436c493b4d1d4ed0723bda
tree8d56964fd6e2ad8fdb752dddc2af0583e763a017
parentf25698d08f72c16be9867d137474b6578c864091
Resolve __va_list_tag ** -> va_list * type errors with clang and future GCCs

Functions taking va_args are munged to receive arguments of type
'__va_list_tag *'. This patch uses va_copy to coerce them to the expected type
so we don't get compiler errors.

Tested on x86_64, both 32-bit and 64-bit compiles.

Reported-By: Basile Starynkevitch <basile@starynkevitch.net>
src/pack_unpack.c