From 733ea6f7a72479a6dcecb51d9e4d661954ad4ea1 Mon Sep 17 00:00:00 2001 From: ishmal Date: Sun, 4 May 2008 17:04:37 +0000 Subject: [PATCH] Remove warnings --- src/dom/prop-css.cpp | 14 +++++++------- src/dom/prop-css2.cpp | 20 ++++++++++---------- src/dom/prop-svg.cpp | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/dom/prop-css.cpp b/src/dom/prop-css.cpp index 59da4b54f..5ef25ce49 100644 --- a/src/dom/prop-css.cpp +++ b/src/dom/prop-css.cpp @@ -31,13 +31,13 @@ struct CssProp_def { - char *name; - char *values; - char *defaultValue; - char *appliesTo; + const char *name; + const char *values; + const char *defaultValue; + const char *appliesTo; bool inherited; - char *percentages; - char *mediaGroups; + const char *percentages; + const char *mediaGroups; }; typedef struct CssProp_def CssProp; @@ -1154,7 +1154,7 @@ bool printTable() } -int main(int argc, char **argv) +int main(int /*argc*/, char **/*argv*/) { printTable(); return 0; diff --git a/src/dom/prop-css2.cpp b/src/dom/prop-css2.cpp index 4f89327b1..b02bb0ce3 100644 --- a/src/dom/prop-css2.cpp +++ b/src/dom/prop-css2.cpp @@ -10,7 +10,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 @@ -37,17 +37,17 @@ typedef bool (*parsefunc)(CssProp *prop, char *propName, char *propVal); struct CssProp_def { parsefunc func; - char *name; - char *values; - char *defaultValue; - char *appliesTo; + const char *name; + const char *values; + const char *defaultValue; + const char *appliesTo; bool inherited; - char *percentages; - char *mediaGroups; + const char *percentages; + const char *mediaGroups; }; -bool parseDefault(CssProp *prop, char *propName, char *propVal) +bool parseDefault(CssProp */*prop*/, char *propName, char *propVal) { printf("######## '%s:%s'\n", propName, propVal); return true; @@ -1296,9 +1296,9 @@ bool printTable() } -int main(int argc, char **argv) +int main(int /*argc*/, char **/*argv*/) { //printTable(); - parseProperty("visibility", "hidden"); + parseProperty((char *)"visibility", (char *)"hidden"); return 0; } diff --git a/src/dom/prop-svg.cpp b/src/dom/prop-svg.cpp index 6ae96e7a4..0a517ef76 100644 --- a/src/dom/prop-svg.cpp +++ b/src/dom/prop-svg.cpp @@ -727,7 +727,7 @@ printTable() } -int main(int argc, char **argv) +int main(int /*argc*/, char **/*argv*/) { printTable(); return ( ferror(stdout) ? EXIT_FAILURE : EXIT_SUCCESS ); -- 2.30.2