nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

warning: comparison between

This is a discussion on warning: comparison between within the Coding in General forums, part of the Development/Scripting category; [ ]$ g++ -Wall -g hashphonedirectory.cpp -o hashphonedirectory hashphonedirectory.cpp: In member function âint File::Hash(char*)â: hashphonedirectory.cpp:16: warning: comparison between signed and ...


Go Back   nixCraft Linux Forum > Development/Scripting > Coding in General

Linux answers from nixCraft.


Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-05-2009, 05:52 PM
Junior Member
User
 
Join Date: May 2009
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
olya003 is on a distinguished road
Smile warning: comparison between

[ ]$ g++ -Wall -g hashphonedirectory.cpp -o hashphonedirectory
hashphonedirectory.cpp: In member function âint File::Hash(char*)â:
hashphonedirectory.cpp:16: warning: comparison between signed and unsigned integer expressions
hashphonedirectory.cpp: At global scope:
hashphonedirectory.cpp:214: warning: ISO C++ forbids declaration of âmainâ with no type
-------------------------------------------------------
CODE ERROR

int File::Hash(char *s)
{
for(xorin = 0; strlen(s) >= unit; s+= unit) //xoring
xorin ^= * (unsigned *) s;
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
phpmyadmin - warning problem satimis Web servers 1 12-06-2009 12:37 PM
Fix sprintf warning Rick Coding in General 4 03-07-2006 12:00 AM
WARNING: General Protection Faults in these executables-sed Usagi Linux software 7 23-06-2006 12:15 PM
Script disabling error or warning message output sweta Shell scripting 2 18-04-2006 08:24 PM
gtk warning cannot open display gnome Linux software 1 14-03-2006 12:50 PM


All times are GMT +5.5. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38