X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Fstatistics.c;h=631fb6965003547dcba68f2bb6a47c3a27fe9ce5;hb=b0e09fe0aada2e5d9dc0299e969b3c93c1092d97;hp=276d605590454bebe1b0328dec2329815a8b8fa9;hpb=9ab9464c184c44e526fe3ec43012070bd0fccfe5;p=libfirm diff --git a/ir/common/statistics.c b/ir/common/statistics.c index 276d60559..631fb6965 100644 --- a/ir/common/statistics.c +++ b/ir/common/statistics.c @@ -1,15 +1,28 @@ /* - * Project: libFIRM - * File name: ir/common/statistics.c - * Purpose: Compute statistics about firm library. - * Author: Goetz Lindenmaier - * Modified by: - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 2004 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ +/** + * @file + * @brief Compute statistics about firm library. + * @author Goetz Lindenmaier + * @version $Id$ + */ #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -24,8 +37,9 @@ /* Statistics about allocated datastructures: counts. */ static void count_nodes(ir_node *n, void *env) { - int * counter_ptr = (int *)env; - (*counter_ptr)++; + int * counter_ptr = (int *)env; + (void) n; + (*counter_ptr)++; } @@ -76,12 +90,14 @@ void print_type_counts(int verbosity) { /** Prints number of tarvals. * */ void print_tarval_counts(int verbosity) { + (void) verbosity; printf("tarval count not implemented.\n\n"); } /** Prints number of idents. * */ void print_ident_counts(int verbosity) { + (void) verbosity; printf("ident count not implemented.\n\n"); }