Re: [R] e1071, R1.9.0, Solaris 2.9, should I be worried?

2004-06-13 Thread Thomas Lumley
On Sun, 13 Jun 2004, Rong-En Fan wrote:

 On Tue, May 25, 2004 at 04:38:44PM +1200, Richard A. O'Keefe wrote:
  In R 1.9.0 running under Solaris 2.9 on a SunBlade 100,
  with Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 as the
  C++ compiler, I just did

 
  How worried should I be?
  I guess the Warning: x hides Solver::x warnings related to a deliberate
  style choice, but what about the String literal converted to char* ones?

 as the message says, things like

 info(Exceeds max_iter in multiclass_prob\n);

 and the info() accepts char * as parameter


The warning is because this line of code is valid only as long as info()
does not modify its argument.  Assigning a string literal to a char *
rather than the more logical const char * is valid C even without a cast
(partly for backwards compatibility reasons), but most compilers have an
option to give warnings (in gcc it's --Wwriteable-strings) because of the
risks.

 If info() in fact does not modify its argument then there is no problem.

-thomas

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] e1071, R1.9.0, Solaris 2.9, should I be worried?

2004-06-12 Thread Rong-En Fan
On Tue, May 25, 2004 at 04:38:44PM +1200, Richard A. O'Keefe wrote:
 In R 1.9.0 running under Solaris 2.9 on a SunBlade 100,
 with Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 as the
 C++ compiler, I just did

 
 How worried should I be?
 I guess the Warning: x hides Solver::x warnings related to a deliberate
 style choice, but what about the String literal converted to char* ones?

as the message says, things like

info(Exceeds max_iter in multiclass_prob\n);

and the info() accepts char * as parameter

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] e1071, R1.9.0, Solaris 2.9, should I be worried?

2004-06-09 Thread Orit Harel (Gdalyahu)

Hi
How are you ?
Did you get any answer regarding String literal converted to char* ?

Thanks.

Thanks and regards,
Orit Harel
* 972-9-7767513
*   [EMAIL PROTECTED]




The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.
[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] e1071, R1.9.0, Solaris 2.9, should I be worried?

2004-05-24 Thread Richard A. O'Keefe
In R 1.9.0 running under Solaris 2.9 on a SunBlade 100,
with Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 as the
C++ compiler, I just did
 install.packages(e1071)
The output includes these lines, which I have wrapped to fit nicely in mail:
** libs
cc -I/users/local/lib/R/include -I/usr/local/include  -KPIC -xlibmil \
 -dalign -xO4 -c cmeans.c -o cmeans.o
cc -I/users/local/lib/R/include -I/usr/local/include  -KPIC -xlibmil \
 -dalign  -xO4 -c cshell.c -o cshell.o
cc -I/users/local/lib/R/include -I/usr/local/include  -KPIC -xlibmil \
 -dalign -xO4 -c floyd.c -o floyd.o
cc -I/users/local/lib/R/include -I/usr/local/include  -KPIC -xlibmil \
 -dalign -xO4 -c Rsvm.c -o Rsvm.o
CC -I/users/local/lib/R/include -I/usr/local/include  -KPIC -xlibmil \
 -dalign -xO4 -c svm.cpp -o svm.o
svm.cpp, line 444: Warning: l hides Solver::l.
svm.cpp, line 444: Warning: Q hides Solver::Q.
svm.cpp, line 444: Warning: Cp hides Solver::Cp.
svm.cpp, line 444: Warning: Cn hides Solver::Cn.
svm.cpp, line 444: Warning: eps hides Solver::eps.
svm.cpp, line 507: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 517: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 690: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 881: Warning: l hides Solver::l.
svm.cpp, line 881: Warning: Q hides Solver::Q.
svm.cpp, line 881: Warning: b hides Solver::b.
svm.cpp, line 881: Warning: y hides Solver::y.
svm.cpp, line 881: Warning: alpha hides Solver::alpha.
svm.cpp, line 881: Warning: Cp hides Solver::Cp.
svm.cpp, line 881: Warning: Cn hides Solver::Cn.
svm.cpp, line 881: Warning: eps hides Solver::eps.
svm.cpp, line 881: Warning: si hides Solver_NU::si.
svm.cpp, line 1278: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 1328: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 1404: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 1439: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 1483: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 1507: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
svm.cpp, line 1719: Warning:
String literal converted to char* in formal argument fmt 
in call to info(char*, ...).
24 Warning(s) detected.

How worried should I be?
I guess the Warning: x hides Solver::x warnings related to a deliberate
style choice, but what about the String literal converted to char* ones?

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html