[mlpack] 101/149: Nope, turns out I am wrong. C++03, C++11, and C++14 all assume a program reaching the end of main() without returning anything will return 0.

Barak A. Pearlmutter barak+git at pearlmutter.net
Sat May 2 09:11:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit 6552d354330d357ecf8aee063a604ce02c2f13a0
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Nov 18 21:53:18 2014 +0000

    Nope, turns out I am wrong.  C++03, C++11, and C++14 all assume a program
    reaching the end of main() without returning anything will return 0.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17379 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/methods/pca/pca_main.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mlpack/methods/pca/pca_main.cpp b/src/mlpack/methods/pca/pca_main.cpp
index 422b2a6..6277c5b 100644
--- a/src/mlpack/methods/pca/pca_main.cpp
+++ b/src/mlpack/methods/pca/pca_main.cpp
@@ -80,6 +80,4 @@ int main(int argc, char** argv)
   // Now save the results.
   string outputFile = CLI::GetParam<string>("output_file");
   data::Save(outputFile, dataset);
-
-  return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list