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.