Thread (5 messages) 5 messages, 3 authors, 2016-06-15

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

flat view
DORMANTno replies

From: Stepan Kasal <hidden>
Date: 2016-06-15 23:01:32

Revision v2 of 2 in this series.

Revisions (2)
  1. v1 [diff vs current]
  2. v2 current
Hi,

On Fri, Jun 06, 2014 at 11:15:04PM +0200, Karsten Blees wrote:
Am 06.06.2014 21:13, schrieb Junio C Hamano:
quoted
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).
quoted
Karsten Blees [off-list ref] writes:
quoted
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

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help