Patch to suppress compiler warnings on k.h

Message-ID: <18828.39059.864113.161703@ron.nulle.part>Date: Fri, 6 Feb 2009 14:07:47 -0600To: personal-kdbplus@googlegroups.comSubject: Patch to suppress compiler warnings on k.hX-Mailer: VM 8.0.9 under Emacs 23.0.60.1 (i486-pc-linux-gnu)From: Dirk Eddelbuettel Recent g++ versions prefer const char* over just char* pointer; and k.htriggers noisy warnings. Below is a trivial patch to suppress these. If themailers munge or line break it, it really just inserts const before char* inthe extern declarations of khpu(), khp() and k().Hth, Dirk$ diff -u k.h.orig k.h— k.h.orig 2009-02-02 14:33:20.000000000 -0600+++ k.h 2009-02-04 12:19:57.000000000 -0600@@ -44,9 +44,9 @@ #ifdef __cplusplus extern"C"{ #endif-extern I khpu(char*,I,char*),khp(char*,I),ymd(I,I,I),dj(I);extern Vr0(K),sd0(I);extern S sn(S,I),ss(S);+extern I khpu(const char*,I,const char*),khp(const char*,I),ymd(I,I,I),dj(I);extern V r0(K),sd0(I);extern S sn(S,I),ss(S); extern K ka(I),kb(I),kg(I),kh(I),ki(I),kj(J),ke(F),kf(F),kc(I),ks(S),kd(I),kz(F),kt(I),sd1(I,K()(I)),dl(Vf,I),- ktn(I,I),knk(I,…),kp(S),kpn(S,I),ja(K*,V*),js(K*,S),jk(K*,K),k(I,char*,…),xT(K),xD(K,K),ktd(K),r1(K),krr(S),orr(S),dot(K,K);+ ktn(I,I),knk(I,…),kp(S),kpn(S,I),ja(K*,V*),js(K*,S),jk(K*,K),k(I,const char*,…),xT(K),xD(K,K),ktd(K),r1(K),krr(S),orr(S),dot(K,K); #ifdef__cplusplus } #endif-- Three out of two people have difficulties with fractions.

X-Mailer: Apple Mail (2.929.2)done.thanks!On Feb 6, 2009, at 9:07 PM, Dirk Eddelbuettel wrote:> Recent g++ versions prefer const char* over just char* pointer; and > k.h> triggers noisy warnings. Below is a trivial patch to suppress these. > If the> mailers munge or line break it, it really just inserts const before > char* in> the extern declarations of khpu(), khp() and k().