LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2010, 07:26 AM   #1
jayasekar
Member
 
Registered: May 2008
Posts: 39

Rep: Reputation: 16
Lightbulb accept system call Warning Message


hi friends, im writing a simple socket program and im getting below mentioned warning msg.
what does it mean and what i have to do to avoid this warning ??

/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’

Last edited by jayasekar; 01-07-2010 at 11:59 PM. Reason: nothing
 
Old 01-08-2010, 12:39 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by jayasekar View Post
hi friends, im writing a simple socket program and im getting below mentioned warning msg.
what does it mean and what i have to do to avoid this warning ??

/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
I think you don't need to worry about it. It seems to be some slightly sloppy code in libc6, that your (presumably) new version of gcc is seeing. There is probably a gcc flag to turn off this warning... but that would require reading some documentation, and in addition could suppress warnings in your own code that you want to see.

Evo2.
 
  


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
How can i make centos 4.5's system call using vDSO(call *%gs:0x10) instead of int80 tclwp Red Hat 3 08-06-2007 12:07 AM
LXer: Second call for votes for GR: Accept concept of Debian Maintainers LXer Syndicated Linux News 0 07-29-2007 04:46 AM
how to handle ECONNABORTED with accept system call? murugesan Solaris / OpenSolaris 3 06-07-2005 02:18 PM
Problem with accept() socket call which doesn't return jph Programming 4 08-06-2003 06:30 AM
Problem with accept() call which doesn't return jph Linux - General 0 07-28-2003 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:01 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