12-12-2009
Quote:
Originally Posted by
jp2542a
Try moving the init of COUNT to above the strcat. The compiler may be confused....
Tried, but still the same warning.
I tried with
gcc-4.4 (Debian 4.4.2-3) 4.4.2 and get the same error but this time repeated:
Quote:
a.c: In function ‘main’:
a.c:13: warning: will never be executed
a.c:13: warning: will never be executed
a.c:13: warning: will never be executed
a.c:13: warning: will never be executed
a.c:13: warning: will never be executed
a.c:13: warning: will never be executed
---------- Post updated at 02:05 PM ---------- Previous update was at 01:43 PM ----------
Got it, it is the
optimize cflag.
Bug?
10 More Discussions You Might Find Interesting
1. Programming
The gcc compiler is giving following error in my code. Can Anyone help, why is this warning popping up.
"void format, different type arg (arg 1)"
The function's on which warning is given, looks like this:
void fprint_stderr_sockarray(int* sockets)
{
..........
..........
} (2 Replies)
Discussion started by: Ahsan
2 Replies
2. Programming
I get this error warning.
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function 'memset'
After compiling this code
#include <stdio.h>
int main() {
char pBuffer;
memset(pBuffer, 0, 32);
return 0;
}
What seems... (2 Replies)
Discussion started by: sledge76
2 Replies
3. Solaris
When we login to a solaris terminal then which processes executed first?
I beleive that first system profile file and user .profile gets executed. So please let me know what happens exactly.
The question may like this that which rocesses arre executed first while loging into unix server? (1 Reply)
Discussion started by: surjyap
1 Replies
4. Solaris
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies
5. Programming
I get the following gcc warning. I do not see a double being declared anywhere... how can I fix this?
(This code is just an example, I realize that the first if bracket will never be executed.)
#include <stdio.h>
int main(void)
{
float A = 0.0;
int B = 150;
if(B == 0)
... (1 Reply)
Discussion started by: limmer
1 Replies
6. Shell Programming and Scripting
as i have been new to unix
can any one can tell,when be type a command on unix shell what processing it goes through before execution of it (1 Reply)
Discussion started by: shashank1311
1 Replies
7. AIX
Hi
Script not getting executed via cron but executes successfully when executed manually. Please assist
cbspsap01(appuser) /app/scripts > cat restart.sh
#!/bin/ksh
cd /app/bin
date >>logfile.out
echo "Restart has been started....." >>logfile.out
date >>logfile.out
initfnsw -y restart... (3 Replies)
Discussion started by: samsungsamsung
3 Replies
8. Shell Programming and Scripting
Hi
I try to run a command using bash script. The script should now look like this:
#!/bin/bash
case "$1" in
start)
sudo su - cispmgm -c "/usr/local/jdk/bin/java -Dworking.dir=/opt/ibm/cisp -Denvironment.target= -Xms512M -Xmx1024M -classpath... (3 Replies)
Discussion started by: nikolai.straess
3 Replies
9. Shell Programming and Scripting
In the following code snippet, 'if' part is always executed irrespective of whether I enter 'y' or 'n'. I am unable to figure out my mistake even after spending couple of hours. Can someone point out the mistake? Thank you!
echo "Do you want to delete?(y/n):"
read USERINPUT
echo $USERINPUT
... (2 Replies)
Discussion started by: Madhus
2 Replies
10. Shell Programming and Scripting
Hi All,
I have written a programme where i need to work in one session but when that session get executed it doesnt execute other programme till I write exit. Below is the script
#!/bin/bash
echo 'Going to start'
exectrusteduser.com sh.com
cd /UAT_Logs/CDCI_LOGS/SEEDADM
pwd
echo... (6 Replies)
Discussion started by: ripudaman.singh
6 Replies
LEARN ABOUT SUNOS
tiffsetwarninghandler
TIFFWarning(3tiff) Introduction to Library Functions TIFFWarning(3tiff)
NAME
TIFFWarning, TIFFSetWarningHandler - library warning interface
SYNOPSIS
#include <tiffio.h>
void TIFFWarning(const char* module, const char* fmt, ...)
#include <stdarg.h>
typedef void (*TIFFWarningHandler)(const char* module, const
char* fmt, va_list ap);
TIFFWarningHandler TIFFSetWarningHandler(TIFFWarningHandler
handler);
DESCRIPTION
TIFFWarning invokes the library-wide warning handler function to (normally) write a warning message to stderr. The fmt parameter is a
printf(3S) format string, and any number of arguments can be supplied. The module parameter is interpreted as a string that, if non-zero,
should be printed before the message, and is typically used to identify the software module in which a warning is detected.
Applications that desire to capture control in the event of a warning should use TIFFSetWarningHandler to override the default warning han-
dler. A NULL(0) warning handler function may be installed to suppress error messages.
RETURN VALUES
TIFFSetWarningHandler returns a reference to the previous error handling function.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWTiff |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
libtiff(3), TIFFError(3tiff), printf(3S)
NOTES
This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004.
SunOS 5.10 02 Apr 2004 TIFFWarning(3tiff)