changeset 3281:f9b94a5b13ac

* infra/trace.cxx, libcdl/build.cxx, libcdl/expr.cxx, tools/Utils/common/eCosStd.h, tools/ecostest/common/eCosTest.cpp, tools/configtool/standalone/wxwin/admindlg.cpp, tools/configtool/standalone/wxwin/configtooldoc.cpp, tools/configtool/standalone/wxwin/configtree.cpp: Silence "set but unused" variable warnings with recent GCC. [ Bugzilla 1001949 ] * standalone/common/ecosconfig.cxx: Update copyright string.
author jld
date Thu, 13 Mar 2014 15:03:41 +0000
parents 0e7f32e78b4d
children b340d0ab5dd3
files host/infra/ChangeLog host/infra/trace.cxx host/libcdl/ChangeLog host/libcdl/build.cxx host/libcdl/expr.cxx host/tools/Utils/ChangeLog host/tools/Utils/common/eCosStd.h host/tools/configtool/ChangeLog host/tools/configtool/standalone/common/ecosconfig.cxx host/tools/configtool/standalone/wxwin/admindlg.cpp host/tools/configtool/standalone/wxwin/configtooldoc.cpp host/tools/configtool/standalone/wxwin/configtree.cpp host/tools/ecostest/ChangeLog host/tools/ecostest/common/eCosTest.cpp
diffstat 14 files changed, 53 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/host/infra/ChangeLog
+++ b/host/infra/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-13  Andy Jackson  <andy@xylanta.com>
+
+	* trace.cxx: Silence "set but unused" variable warnings with
+	recent GCC. [ Bugzilla 1001949 ]
+
 2008-08-18  Bart Veer  <bartv@ecoscentric.com>
 
 	* configure.in, Makefile.am: update host-side configury
@@ -177,7 +182,7 @@ 1998-12-24  Bart Veer  <bartv@cygnus.co.
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
+// Copyright (C) 1998, 1999, 2000, 2014 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     
--- a/host/infra/trace.cxx
+++ b/host/infra/trace.cxx
@@ -10,7 +10,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2014 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     
@@ -555,6 +555,7 @@ parse_msg(const char* msg, trace_entry& 
             format        += *msg++;
             long_version   = true;
         }
+        CYG_UNUSED_PARAM(bool, short_version);
 
         // The end of the format string has been reached.
         int format_ch  = *msg;
--- a/host/libcdl/ChangeLog
+++ b/host/libcdl/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-13  Andy Jackson  <andy@xylanta.com>
+
+	* build.cxx, expr.cxx: Silence "set but unused" variable
+	warnings with recent GCC. [ Bugzilla 1001949 ]
+
 2008-09-18  John Dallaway  <jld@ecoscentric.com>
 
 	* build.cxx (generate_config_headers): Create Tcl channels for
@@ -1006,7 +1011,7 @@ 1999-01-21  Bart Veer  <bartv@cygnus.co.
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1999, 2000, 2001, 2004, 2008 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2001, 2004, 2008, 2014 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     
--- a/host/libcdl/build.cxx
+++ b/host/libcdl/build.cxx
@@ -10,7 +10,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2008 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2008, 2014 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     
@@ -639,6 +639,7 @@ CdlBuildableBody::update_all_build_info(
 
         result = CdlBuildableBody::split_custom_build_step(raw_data, target, deps, rules, error_msg);
         CYG_ASSERTC(true == result);
+        CYG_UNUSED_PARAM(bool, result);
 
         // Construct a local object, then copy it into the vector
         CdlBuildInfo_MakeObject local_copy;
@@ -676,6 +677,7 @@ CdlBuildableBody::update_all_build_info(
 
         result = CdlBuildableBody::split_custom_build_step(raw_data, target, deps, rules, error_msg);
         CYG_ASSERTC(true == result);
+        CYG_UNUSED_PARAM(bool, result);
 
         // Construct a local object, then copy it into the vector
         CdlBuildInfo_Make local_copy;
--- a/host/libcdl/expr.cxx
+++ b/host/libcdl/expr.cxx
@@ -10,7 +10,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.            
+// Copyright (C) 1999, 2000, 2001, 2014 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     
@@ -2994,6 +2994,7 @@ CdlListExpressionBody::update(CdlTransac
             CYG_ASSERTC(handled);
             handled = pair_i->second->update(transact, source, source_prop, dest, change);
             CYG_ASSERTC(handled);
+            CYG_UNUSED_PARAM(bool, handled);
         }
         
         result = true;
--- a/host/tools/Utils/ChangeLog
+++ b/host/tools/Utils/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-13  Andy Jackson  <andy@xylanta.com>
+
+	* common/eCosStd.h: Silence "set but unused" variable warnings with
+	recent GCC. [ Bugzilla 1001949 ]
+
 2006-03-29  John Dallaway  <jld@ecoscentric.com>
 
 	* common/eCosSocket.h: Specify CeCosSerial as a friend class to
--- a/host/tools/Utils/common/eCosStd.h
+++ b/host/tools/Utils/common/eCosStd.h
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
+// Copyright (C) 1998, 1999, 2000, 2014 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     
@@ -138,6 +138,9 @@ extern Time Now();
 extern int MIN(int a, int b);
 extern int MAX(int a, int b);
 
+// Get the CYG_UNUSED_PARAM() macro.
+#include <cyg/infra/cyg_type.h>
+
 #include <string.h>
 
 #include <time.h>
--- a/host/tools/configtool/ChangeLog
+++ b/host/tools/configtool/ChangeLog
@@ -1,3 +1,11 @@
+2014-03-13  Andy Jackson  <andy@xylanta.com>
+
+	* standalone/wxwin/admindlg.cpp,
+	  standalone/wxwin/configtooldoc.cpp,
+	  standalone/wxwin/configtree.cpp: Silence "set but unused" variable
+	warnings with recent GCC. [ Bugzilla 1001949 ]
+	* standalone/common/ecosconfig.cxx: Update copyright string.
+
 2014-02-28  Andy Jackson  <andy@xylanta.com>
 
 	* standalone/wxwin/standalone/wxwin/finddlg.cpp,
--- a/host/tools/configtool/standalone/common/ecosconfig.cxx
+++ b/host/tools/configtool/standalone/common/ecosconfig.cxx
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2010 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2010, 2014 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     
@@ -50,7 +50,7 @@
 #include "ecosconfig.hxx"
 
 #define TOOL_VERSION "3.net"
-#define TOOL_COPYRIGHT "Copyright (c) 2002-2010 Free Software Foundation, Inc."
+#define TOOL_COPYRIGHT "Copyright (c) 2002-2014 Free Software Foundation, Inc."
 #define DEFAULT_SAVE_FILE "ecos.ecc"
 static const char* tool = "ecosconfig";
 
--- a/host/tools/configtool/standalone/wxwin/admindlg.cpp
+++ b/host/tools/configtool/standalone/wxwin/admindlg.cpp
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2003, 2013 Free Software Foundation, Inc.      
+// Copyright (C) 1998, 1999, 2000, 2003, 2013, 2014 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     
@@ -472,6 +472,7 @@ bool ecAdminDialog::PopulatePackageTree 
     
     // Add a root item
     wxTreeItemId rootId = m_treeCtrl->AddRoot(_("Packages"), 0, -1);
+    CYG_UNUSED_PARAM(wxTreeItemId, rootId);
 
     // populate the new package tree
     
@@ -534,6 +535,7 @@ bool ecAdminDialog::EvalTclFile(int narg
     pszStatus = Tcl_SetVar (interp, "argv", (char*) argv.c_str(), 0);
     pszStatus = Tcl_SetVar (interp, "argc", (char*) argc.c_str(), 0);
     pszStatus = Tcl_SetVar (interp, "gui_mode", "1", 0); // return errors in result string
+    CYG_UNUSED_PARAM(const char *, pszStatus);
     int nStatus = Tcl_EvalFile (interp, (char*) argv0.c_str());
     const char* result = Tcl_GetStringResult (interp);
 
--- a/host/tools/configtool/standalone/wxwin/configtooldoc.cpp
+++ b/host/tools/configtool/standalone/wxwin/configtooldoc.cpp
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2003, 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2003, 2005, 2006, 2008, 2009, 2010, 2014 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     
@@ -382,6 +382,7 @@ bool ecConfigToolDoc::GenerateBuildTree(
             // copy new MLT files to the build tree as necessary
             bool rc = generate_build_tree (GetCdlConfig(), ecUtils::UnicodeToStdStr(m_strBuildTree.CygPath()), ecUtils::UnicodeToStdStr(m_strInstallTree.CygPath()));
             rc = TRUE;
+            CYG_UNUSED_PARAM(bool, rc);
         }
 
     }
--- a/host/tools/configtool/standalone/wxwin/configtree.cpp
+++ b/host/tools/configtool/standalone/wxwin/configtree.cpp
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2008, 2009 Free Software Foundation, Inc.      
+// Copyright (C) 1998, 1999, 2000, 2008, 2009, 2014 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     
@@ -717,6 +717,7 @@ void ecSplitterScrolledWindow::OnPropert
         // or not
         menu = (wxMenu*) obj;
     }
+    CYG_UNUSED_PARAM(wxMenu *, menu);
 
     ecConfigTreeCtrl* treeCtrl = (ecConfigTreeCtrl*) FindWindow(ecID_TREE_CTRL);
     wxASSERT (treeCtrl != NULL) ;
--- a/host/tools/ecostest/ChangeLog
+++ b/host/tools/ecostest/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-13  Andy Jackson  <andy@xylanta.com>
+
+	* common/eCosTest.cpp: Silence "set but unused" variable warnings
+	with recent GCC. [ Bugzilla 1001949 ]
+
 2012-04-23  John Dallaway  <john@dallaway.org.uk>
 
 	* common/eCosTestPlatform.cpp: Include limits.h for PATH_MAX
--- a/host/tools/ecostest/common/eCosTest.cpp
+++ b/host/tools/ecostest/common/eCosTest.cpp
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2009 Free Software Foundation, Inc.            
+// Copyright (C) 1998, 1999, 2000, 2009, 2014 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     
@@ -869,6 +869,7 @@ void CeCosTest::ConnectSocketToSerialThr
   }
   TRACE(_T("ConnectSocketToSerial : done\n"));
   CeCosSocket::CloseSocket(m_nAuxListenSock);
+  CYG_UNUSED_PARAM(bool, rc);
 }
 
 static bool CALLBACK DerefBool(void *pParam)
@@ -935,6 +936,7 @@ void CeCosTest::AcceptThreadFunc()
       SetExecutable(m_strExecutable); // to set stripped length and title
       RunLocal();
       _tunlink(m_strExecutable);
+      CYG_UNUSED_PARAM(bool, bCanRun);
     }
     sendResult();
     m_pSock->recvInteger(n); // receive an ack