Programming :: Suppress A Particular Warning
Jul 22, 2010In gcc, does anyone know how to suppress a particular warning. I want to suppress "warning: useless storage class specifier in empty declaration"
View 6 RepliesIn gcc, does anyone know how to suppress a particular warning. I want to suppress "warning: useless storage class specifier in empty declaration"
View 6 RepliesI'm running Ubuntu Server 9.10 and every time that I su in as root and run a command, I get a little message after saying:
"You have mail in /var/mail/root"
And in fact, I do have mail in there, it's mail that I would like to keep for future reference. How can I suppress the message though?
I'm getting 10000000's of syslog messages :
"eth0: PHY reset until link up"
- I have wireless and don't normally use an ethernet cable. From Googling round I found this bug report https://bugs.launchpad.net/ubuntu/+s...ux/+bug/270184 which appears to match the problem, however I do not feel happy/competent enough to recompile the driver as suggested in the bug fix. Is there a way to configure the driver so that it only tries the eth0 connection a limited number of times? This is Ubuntu 8.04 2.4.26-27 and SIS 191 chipset
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
[code]....
I am running a PHP script using the GD library on a Linux server. When I try to load a font using PHP's imageloadfont(), GD replies with:
Code:
gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
Linux kernel is 2.6, PHP version is 5.2.9 and GD is 2.0.34.
I have tried several different font but all have the same issue. Does anyone know what the error means?
I have been using comm to compare two simple column lists, and suppress items that were contained in the second list (suppression list). This was extremely simple and basic, however now list1 has two columns, and I must compare the second column in list1 with my suppression list.
Basically I need to compare my user list and suppression list to suppress any users that exist in the suppression list, then remove the second column (md5).I wasn't sure the fastest way to make comparisons if there was a similar command like comm, or if I needed to create an array of users and see if any of them matched the suppression list one by one. This seemed like it would be pretty process intensive. Anyone have any less cumbersome ideas?
Referencing a previous thread in which a similar problem exists:[URL]Currently I am using grep -ivf a.txt b.txt > c.txt to get what I need.
a.txt:
user1@domain.com
uSer2@domain.com
[code]....
I am writing a sample nasm program via terminal.It's a basic one ,it only demonstrates the usage of the zero and sign flags and print relevant message to the output. Here are the code:
Code:
SECTION .data; data section
errMsg:db "Error !",10
errLen:equ $-errMsg
zeroMsg: db "Zero flag",10
zeroLen: equ $-zeroMsg
[Code]....
I have a new folder in my directory, called 'newfolder'
When I create a diff file there is no mention of this new folder in it.
When I do 'svn add newfolder' it says: svn: warning: 'newfolder' is already under version control.
How do I get my newfolder to be included in my diff file so that it is included when someone else patches my file in their own directory
I've just moved onfrom developing some code on Debian (gcc 4.1) to Ubuntu (gcc4.4) and a warning in my g++ code has appeared. Basically in some serial prot code I get this errorwarning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_resultfrom function
void TxChar(COMPORT *port,unsigned char letter)
{
pthread_mutex_lock( &txmutex );
[code]....
I'm trying to link 'aubio' (a lib) and its failing on one of ts dep's with this error.
Code:
$ make
Making all in src
make[1]: Entering directory `/home/John/Externals/aubio/aubio-0.3.2/src'
make all-am
[code]....
"Warning: This system can not link to static lib archive /usr/local/lib/libff"
I've configured/make/make installed fftw and its doing just fine in the usr/lib folder, so I'm at a loss at how to fix this. Do I need to build fftw again using some kind of shared make switch? I couldn't find any referance about that.
I just wrote a simple perl script to compare the following two files
[Code]...
I've just updated my linux system (Debian) and went to compile some code I'm working on. However it causes some problems, presumable because of GCC up dates. I get many of my subject line errors for example
../../common/Version_Control.cpp: In function int VersionControl():
../../common/Version_Control.cpp:55: warning: deprecated conversion from string constant to char*
So I check up the error and it comes from my error handler code which is a function
extern void SetError(char *string,int error_number)
The net tells me all I need to do is convert char *string to const char *string, however when I do so and recompile I get the following error
Error_Control.cpp: In function �void SetError(const char*, int)�:
Error_Control.cpp:41: error: invalid conversion from �const char*� to �char*�
make: *** [Error_Control.o] Error 1
I think I've done exactly what's recommended ?
My problem is that the warning keeps apperaing when I run g++ compilation.
Say, I have a system runtime function with header (imaginary)sysruntime.h: void printfunction(char *line);
Then in my .cpp file, I will include the above header #include <sysruntime.h>
Then, I do the below:
Line12: char *linetoprint = "Print this line";
Line13: printfunction(linetoprint);
But, I will get the warning message "Line12: deprecated conversion from string constant to 'char*'". (Even though it compiles)
My question is how should I declare my char* so that I wont get this warning message, and can still run printfunction(char* line) correctly?
i just tried to install Ubuntu Netbook 10.04 on my old Amilo Lifebook P Series. But after the boot screen and the choice to install Ubuntu i get stuck at the Ubuntu screen with the little dots on the bottom If I hit esc i can see the warning (process 257): GLib-WARNING **: getpwuid_(r) failed due to unknown user id (0)
View 2 Replies View RelatedI have the plugin installed ok and have pasted in a C source file that I know works and am getting the following errors, I think because the linker options need to be set in some way. I cannot copy the errors but they all complain of implicit declaration of functions like this: -
warning: implicit declaration of function strlen
But I have the headers included, is this a linker problem? Here is the code -
#include <stdio.h>
#include <math.h>
int main(){
[code]...
Using rsync, which switch will allow rsync to suppress the "skipping non-regular file" messages in the output while still being reasonably verbose for everything else?
View 1 Replies View RelatedSince Firefox is cross platform, this is equally Linux and Windows question, but presumably the Linux crowd knows better.
Whenever I go full screen with any kind of video in Firefox I get the "press ESC to exit full-screen mode" warning that plagues my screen for several seconds.
How can I get rid of this?
How to suppress "Do you want to overwrite" prompt while using cp command. I tried "cp -fr", but it isn't worked
View 4 Replies View RelatedAs subjected I have this warning message code...
How can I get rid of this warning message?
I want to use vfprintf with the char * on 64-bit. Here is the sample code:
[Code]...
In this code, I am getting warning: passing argument 3 of vfprintf from incompatible pointer type I have done sizeof(va_list) on 64-bit, and its 24 bytes. I don't know how am I suppose to use the va_list this way.
i have this warning "differ in signedness".
[Code]...
so i was getting this error. im thinking it may be because of somewhere i declared unsigned and signed so this signedness warning occurring.
Code:
switcase.c: In function ImplementDebugCmd: switcase.c:385: warning: pointer targets in passing argument 1 of STRING_stricmp differ in signedness
On both my 32-bit laptop (openSUSE 11.3) and my 64-bit desktop (openSUSE 11.2) I have been unable to find out how to prevent seeing all the "hidden files" when opening files in many applications, including (for example) GIMP, Xournal, OpenOffice, gedit.In the Control Centre "File management" options "Show hidden and backup files" is NOT checked in "File Management Preferences.
View 2 Replies View RelatedI just installed Fedora 11, and am now running a Yum Update. It has run for a while, but now I have this message:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 signature: NOKEY, key ID d22e77f2
updates/gpgkey | 1.6 kB 00:00
Importing GPG key 0xD22E77F2 "Fedora (11) <fedora@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Is this ok [y/N]:
Do I say yes or no to this? I don't know what it is.
Whenever I use Aptitude in my terminal I get a warning I would like to get rid of.It is a GPG warning:
Code:
skybrigidrain@Alexi:~$ sudo apt-get update
Get:1 http://packages.medibuntu.org karmic Release.gpg [197B]
[code]....
I am trying to zip up my Home directory (zip -r -9 /Destination /home/joe) & when I do I get the error below in a constant loop until I hit ctrl-c to stop. This use to work fine. The only change I made lately was change the permissions to 700 but I don't see how this would do anything.Quote:
zip warning: name not matched: /home/joe/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My Documents/.wine/drive_c/users/joe/My
[code]....
When installing updates, I am getting a warning that some updates are unauthenticated and may be malicious. These are all "lib" files. I am not willing to corrupt this laptop. That's why I moved to Linux in the first place..
View 12 Replies View RelatedJust finnished a fresh install of Squeeze. In a console, as root, when i type gedit i get: # gedit No protocol specified
(gedit:24284): Gtk-WARNING **: cannot open display: :0.0
For the last week or so, I've been getting the following warning whenever I do an update. Is it expected, or should it be bugged?
Code:
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB has been altered since the last yum transaction.
Updating : pulseaudio-libs-0.9.21-1.fc12.x86_64 1/53
dd_wizard
after installation of a s/w for authentication from my ISP I couldnt launch the same and the following msg appears
pradipta@linux-auem:~> sudo sifyconnect
root's password:
pradipta@linux-auem:~>
(sifyconnect:5062): Gtk-WARNING **: cannot open display: