From 116acf78daaaa5a1157f1f8ee781b55d2d391a14 Mon Sep 17 00:00:00 2001 From: ishmal Date: Wed, 4 Jun 2008 17:43:36 +0000 Subject: [PATCH] Remove warnings --- src/knot-holder-entity.h | 2 +- src/registrytool.cpp | 31 +++++++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h index 287c9c64d..5c273fe29 100644 --- a/src/knot-holder-entity.h +++ b/src/knot-holder-entity.h @@ -47,7 +47,7 @@ public: should be derived from KnotHolderEntity and override these functions */ virtual void knot_set(NR::Point const &p, NR::Point const &origin, guint state) = 0; virtual NR::Point knot_get() = 0; - virtual void knot_click(guint state) {} + virtual void knot_click(guint /*state*/) {} void update_knot(); diff --git a/src/registrytool.cpp b/src/registrytool.cpp index 84af86eff..8bc9cbebf 100644 --- a/src/registrytool.cpp +++ b/src/registrytool.cpp @@ -8,7 +8,7 @@ * Authors: * Bob Jamison * - * Copyright (C) 2005 Bob Jamison + * Copyright (C) 2005-2008 Bob Jamison * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -33,9 +33,9 @@ typedef struct { - HKEY key; - int strlen; - char *str; + HKEY key; + int strlen; + const char *str; } KeyTableEntry; @@ -50,6 +50,10 @@ KeyTableEntry keyTable[] = { NULL, 0, NULL } }; + +/** + * Set the string value of a key/name registry entry + */ bool RegistryTool::setStringValue(const Glib::ustring &keyNameArg, const Glib::ustring &valueName, const Glib::ustring &value) @@ -93,6 +97,11 @@ bool RegistryTool::setStringValue(const Glib::ustring &keyNameArg, return true; } + + +/** + * Get the full path, directory, and base file name of this running executable + */ bool RegistryTool::getExeInfo(Glib::ustring &fullPath, Glib::ustring &path, Glib::ustring &exeName) @@ -123,6 +132,11 @@ bool RegistryTool::getExeInfo(Glib::ustring &fullPath, } + +/** + * Append our subdirectories to the Application Path for this + * application + */ bool RegistryTool::setPathInfo() { Glib::ustring fullPath; @@ -162,6 +176,15 @@ bool RegistryTool::setPathInfo() #ifdef TESTREG + +/** + * Compile this file with + * g++ -DTESTREG registrytool.cpp -o registrytool + * to run these tests. + */ + + + void testReg() { RegistryTool rt; -- 2.30.2