From e35481d208a0225623450d37fa45ff95cb753a18 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sat, 29 Dec 2012 13:32:49 +0100 Subject: Silence some compiler warnings --- comments/dformat.cpp | 14 +++++++------- comments/func.cpp | 28 ++++++++++++++-------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/comments/dformat.cpp b/comments/dformat.cpp index 3dbef34..7108dbd 100644 --- a/comments/dformat.cpp +++ b/comments/dformat.cpp @@ -31,7 +31,7 @@ dformat::dformat(int a, char** av) io.regionsCount = 0; io.doneOutput = 0; - if(!load_arguments("-x")) cerr << "Programmer goofed, you should not see this. Error clearing out arguments." << endl; + if(!load_arguments((char *)"-x")) cerr << "Programmer goofed, you should not see this. Error clearing out arguments." << endl; test_args=true; // Lets make sure the arg syntax is good first while(next()) ; @@ -43,7 +43,7 @@ dformat::dformat(int a, char** av) io.done(test_args); test_args=false; // Clear out the settings - if(!load_arguments("-x")) cerr << "Programmer goofed, you should not see this. Error clearing out arguments." << endl; + if(!load_arguments((char *)"-x")) cerr << "Programmer goofed, you should not see this. Error clearing out arguments." << endl; }; dformat::~dformat() {}; @@ -182,7 +182,7 @@ bool dformat::load_arguments(char* str) if(strlen(str)==0) return false; - for(int x=1; x<(signed)strlen(str); x++) + for(unsigned int x=1; x