[PATCH v2 0/2] mingw: macro main(), const warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Jun 06, 2014 at 11:15:04PM +0200, Karsten Blees wrote:
> Am 06.06.2014 21:13, schrieb Junio C Hamano:
> > I am wondering why the solution is not a more obvious "drop const
> > that is not ANSI C", though.  I only have a ready-access to N1570
> > draft but in it I find:
> >
>
> Actually, that was the original solution ($gmane/247535).

> > Karsten Blees <karsten.blees@xxxxxxxxx> writes:
> >> A simpler solution that works with all definitions of main() is to
> >> cast to void* (tell the compiler all responsibility is on
> >> us).

Indeed, verified.  Re-submitting.
Cheers,
	Stepan

Karsten Blees (1):
  Win32: move main macro to a function

Stepan Kasal (1):
  mingw: avoid const warning

 compat/mingw.c | 15 +++++++++++++++
 compat/mingw.h | 14 ++++----------
 2 files changed, 19 insertions(+), 10 deletions(-)

-- 
2.0.0.9635.g0be03cb

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]