[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1573106 - /subversion/trunk/build/ac-macros/compiler.m4

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Sun, 02 Mar 2014 13:31:15 +0000

Branko Čibej <brane_at_wandisco.com> writes:

> "int main(void)" is not equivalent to "int main()" in C; it is in C++.

These are compatible

  int foo(void);
  int foo(){...}

however main is special so I suppose 'int main(){...}' might be
compatible but not equivalent, or I suppose compatiblity may be
irrelevant and it may simply be not equivalent. I find it hard to
believe the standard intended that distinction particularly since it
uses 'int main(){...}' in examples. I think it is intended to be

Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-03-02 14:31:54 CET

This is an archived mail posted to the Subversion Dev mailing list.