LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2010, 09:13 AM   #1
amarg
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Rep: Reputation: 0
Code for few warning messages


Hi,

For the following compilation warning message I need to create some sample program in C for self study. Also I am looking for some good web link where all the C warnings are described.

1. Warning #47: incompatible redefinition of macro "entity" . Undefine macro before
2. Warning #167: argument of type “…” is incompatible with parameter of type “…”
3. Warning #175: subscript out of range
4. Warning #181: argument is incompatible with corresponding format string conversion
5. Warning #187: use of "=" where "==" may have been intended
6. Warning #268: the format string ends before this argument
7. Warning #269: invalid format string conversion
8. Warning #556: a value of type "type" cannot be assigned to an entity of type "type"
9. Warning #1899: multicharacter character literal (potential portability problem) :memset(buff,'ABC',sizeof(buff));

Thanks,
Amar
 
Old 10-02-2010, 09:45 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by amarg View Post
...
9. Warning #1899: multicharacter character literal (potential portability problem) :memset(buff,'ABC',sizeof(buff));

Thanks,
Amar
The SOP (Standard Operating Procedure) should be: you use a function -> you first read the manpage describing it.

You can find a lot of manpages at die.net - for your particular case: http://linux.die.net/man/3/memset .

Try to figure out the what the problem is yourself.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HeartBeat warning messages karlochacon Linux - Server 1 10-16-2009 09:40 AM
I don't want to see the pam warning messages SungWon Chung Linux - Software 3 01-27-2008 08:09 AM
Nautilus warning messages !! DipeshKhakhkhar Linux - Software 1 11-18-2004 11:14 AM
Mimedefang warning messages sloop Linux - Software 0 11-15-2004 09:11 PM
suppress warning messages h/w Programming 2 10-07-2003 02:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration