[Dune] [Dune-Commit] dune-common r6005 - trunk/am
Jö Fahlke
jorrit at jorrit.de
Tue May 18 11:47:12 CEST 2010
Am Tue, 18. May 2010, 08:10:54 +0200 schrieb mnolte at dune-project.org:
> non-void funtions should return something
Actually, in C++ the function main is an exception -- it has an implicit
"return 0;" at the end.
> Modified: trunk/am/headercheck
> ===================================================================
> --- trunk/am/headercheck 2010-05-14 09:15:18 UTC (rev 6004)
> +++ trunk/am/headercheck 2010-05-18 06:10:54 UTC (rev 6005)
> @@ -49,7 +49,7 @@
> || echo "#include <config.h>" > $$CCFILE; \
> echo "#include <$${HEADER}>" >> $$CCFILE; \
> echo "#include <$${HEADER}>" >> $$CCFILE; \
> - echo "int main () {}" >> $$CCFILE; \
> + echo "int main () { return 0; }" >> $$CCFILE; \
> make $$OFILE > $$LOGFILE 2>&1; \
> SUCCESS=$$?; \
> if ! (test $$SUCCESS -eq 0 && test -e $$OFILE); then \
Bye,
Jö.
--
F: Was ist der Sinn des Menschen?
A: Die Menschheit voranzubringen.
F: Aber was ist der Sinn der Menschheit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20100518/ee41652f/attachment.sig>
More information about the Dune
mailing list