how to deal with longjmp warnings

Paul J Stevens paul at nfg.nl
Wed Mar 12 16:47:02 CET 2008


Jan-Henrik Haukeland wrote:
> On 12. mars. 2008, at 10.10, Paul J Stevens wrote:
> 
>> I'm busy adding try/catch macros around all my queries, but now my
>> compiler starts to complain:
>>
>> warning: variable 'xyz' might be clobbered by 'longjmp' or 'vfork'
>>
>> Any suggestion on how best to deal with these?
> 
> 
> No idea, never seen that one before. Quick googling suggest  
> deficiencies in the compiler. GCC 4.x which I use on Mac OS X and  
> Ubuntu have never shown this warning. It may help declaring the  
> variables you get a warning on as volatile, if possible.

Ah. Ok. I did the same search. I'm working on ubuntu myself most of the
time (gcc-4.1).

I'll tweak my code until gcc is happy. Just wanted to know if I had to
follow some pattern.

thanks.


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl


More information about the libzdb-general mailing list