10-05-2008
Regarding "Warning: String literal converted to char* in formal argument msg in call to debug(char*, char*)"
This warning message probably means you are passing a string literal (which is of type (const char *) i.e. not modifiable) to debug(). Changing the prototype for debug() should eliminate a considerable number of warnings.
8 More Discussions You Might Find Interesting
1. Solaris
Hi,
We are porting our application from 32bit to 64bit.
We tried -xarch=v9, -xarc=v9a and -xport64=full options so that compiler to issue 64bit porting warnings.
But we are not getting any porting warninings
WE are using CC 5.5 compiler on sparc-solaris m/c.
Please tell us some powerful... (0 Replies)
Discussion started by: shobhah
0 Replies
2. Shell Programming and Scripting
Hello everyone,
Sorry if this is a bit of an RTM thing, but I can't find any flags for suppressing warnings with awk and Googling (this site too) didn't yield much useful. Does anyone know how to suppress warnings?
The warning I'm specifically trying to remove is one warning me that I'm... (1 Reply)
Discussion started by: kdelok
1 Replies
3. Programming
To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first?
The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's...
Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies
4. Solaris
I have tried to compile the code on solaris which is
bash-3.00$ uname -a
SunOS zen 5.7 Generic_106541-37 sun4u sparc SUNW,Ultra-80
bash-3.00$ CC -V
CC: WorkShop Compilers 5.0 98/12/15 C++ 5.0
when I compile just a simple program,
int main()
{
long kk = 200;
int jj = kk;
return... (0 Replies)
Discussion started by: amit_27
0 Replies
5. UNIX for Advanced & Expert Users
Hi,
I am using GNU unix. And running a bash shell. Can anyone please tell me what is the command for changing the color of the compiler error/warning messages on the console. I think it is in .bashrc and do not know how.
Thanks
Pink (0 Replies)
Discussion started by: pink01
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am using GNU unix. And running a bash shell. Can anyone please tell me what is the command for changing the color of the compiler error/warning messages on the console. I think it is in .bashrc and do not know how.
Thanks
Pink (1 Reply)
Discussion started by: pink01
1 Replies
7. Shell Programming and Scripting
Hello everyone!! I got a slight problem doing some calculation from the text file. I able to get the specific data by cutting it using grep and cut.
The amount can be calculated but the problem I faced now is even the field which I didnt cut is been calculated too.
This is what I meant.
The... (2 Replies)
Discussion started by: aLHaNz
2 Replies
8. Post Here to Contact Site Administrators and Moderators
isNumeric()
{
numericExpression='^+$'
if ! ]
then
echo 1;
else
echo 0;
fi
}
getColumnData()
{
echo `echo $1|cut -d "," -f1,2 --output-delimiter " "`
}
containsSegment()
{
if ] || ] || ]
... (2 Replies)
Discussion started by: ramyags
2 Replies
uil(user cmd) uil(user cmd)
NAME
uil -- The user interface language compiler
SYNOPSIS
uil [options ] [file]
DESCRIPTION
The uil command invokes the UIL compiler. The User Interface Language (UIL) is a specification language for describing the initial state of
a user interface for a Motif application. The specification describes the objects (menus, dialog boxes, labels, push buttons, and so on)
used in the interface and specifies the routines to be called when the interface changes state as a result of user interaction.
file Specifies the file to be compiled through the UIL compiler.
options Specifies one or more of the following options:
-Ipathname
This option causes the compiler to look for include files in the directory specified if the include files have not been
found in the paths that already were searched. Specify this option followed by a pathname, with no intervening spaces.
-m Machine code is listed. This directs the compiler to place in the listing file a description of the records that it
added to the User Interface Database (UID). This helps you isolate errors. The default is no machine code.
-o file
Directs the compiler to produce a UID. By default, UIL creates a UID with the name a.uid. The file specifies the
filename for the UID. No UID is produced if the compiler issues any diagnostics categorized as error or severe. UIDs
are portable only across same-size machine architectures.
-s Directs the compiler to set the locale before compiling any files. The locale is set in an implementation-dependent
manner. On ANSI C-based systems, the locale is usually set by calling setlocale(LC_ALL, ""). If this option is not
specified, the compiler does not set the locale.
-v file Directs the compiler to generate a listing. The file specifies the filename for the listing. If the -v option is not
present, no listing is generated by the compiler. The default is no listing.
-w Specifies that the compiler suppress all warning and informational messages. If this option is not present, all mes-
sages are generated, regardless of the severity.
-wmd file Specifies a binary widget meta-language description file to be used in place of the default WML description.
RELATED INFORMATION
X(1) and Uil(3).
uil(user cmd)