From 38980bbfac573dcefe25021e0d9ff8a6894372ca Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 25 Sep 2012 21:20:09 -0700 Subject: [PATCH] Suppress GCC 4.7 warnings due to unimplemented features. GCC 4.7 complains that the variables removed by this commit are assigned values that are not used. Fair enough, so this commit removes them. --- src/language/data-io/save.c | 10 ++++------ src/language/stats/autorecode.c | 7 ++++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/language/data-io/save.c b/src/language/data-io/save.c index b930855ec2..b8031f71ea 100644 --- a/src/language/data-io/save.c +++ b/src/language/data-io/save.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -159,8 +159,6 @@ parse_write_command (struct lexer *lexer, struct dataset *ds, struct case_map *map; /* Map from input data to data for writer. */ /* Common options. */ - bool print_map; /* Print map? TODO. */ - bool print_short_names; /* Print long-to-short name map. TODO. */ struct sfm_write_options sysfile_opts; struct pfm_write_options porfile_opts; @@ -175,8 +173,6 @@ parse_write_command (struct lexer *lexer, struct dataset *ds, dict = dict_clone (dataset_dict (ds)); writer = NULL; map = NULL; - print_map = false; - print_short_names = false; sysfile_opts = sfm_writer_default_options (); porfile_opts = pfm_writer_default_options (); @@ -201,7 +197,9 @@ parse_write_command (struct lexer *lexer, struct dataset *ds, goto error; } else if (lex_match_id (lexer, "NAMES")) - print_short_names = true; + { + /* Not yet implemented. */ + } else if (lex_match_id (lexer, "PERMISSIONS")) { bool cw; diff --git a/src/language/stats/autorecode.c b/src/language/stats/autorecode.c index c3ab81c93d..95fb8d173c 100644 --- a/src/language/stats/autorecode.c +++ b/src/language/stats/autorecode.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2009, 2010, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -134,7 +134,6 @@ cmd_autorecode (struct lexer *lexer, struct dataset *ds) size_t n_dsts = 0; enum arc_direction direction = ASCENDING; - bool print = true; struct casereader *input; struct ccase *c; @@ -185,7 +184,9 @@ cmd_autorecode (struct lexer *lexer, struct dataset *ds) if (lex_match_id (lexer, "DESCENDING")) direction = DESCENDING; else if (lex_match_id (lexer, "PRINT")) - print = true; + { + /* Not yet implemented. */ + } else if (lex_match_id (lexer, "GROUP")) { arc->global_items = xmalloc (sizeof (*arc->global_items)); -- 2.30.2