Warning: X may be used uninitialized in this function

one has not been assigned so points to an unpredictable location. You should either place it on the stack: or dynamically allocate memory for it: Note the use of free in this case. In general, you’ll need exactly one call to free for each call made to malloc

ERROR: Control may reach end of non-void function /

If you call the function with a first argument of 0 the loop is never executed and the return statement is, thus, never reached. Falling of the end of a non-void function is undefined behavior. My personal guess is that the return statement was meant to one level up, i.e., in the out block: this would guarantee that the function always returns … Read more

mean, nanmean and warning: Mean of empty slice

I really can’t see any good reason not to just suppress the warning. The safest way would be to use the warnings.catch_warnings context manager to suppress the warning only where you anticipate it occurring – that way you won’t miss any additional RuntimeWarnings that might be unexpectedly raised in some other part of your code: … Read more

Data truncated for column?

Your problem is that at the moment your incoming_Cid column defined as CHAR(1) when it should be CHAR(34). To fix this just issue this command to change your columns’ length from 1 to 34 Here is SQLFiddle demo

Variable warning set but not used

none shows up twice in this code snippet: And then: If, for example, you later had: or or something to that effect, we would say none is “used”, but as the code is, you have: “none” set but not used; exactly what the compiler said. In the pastebin link I see your problem: You wrote this: You meant to write this: … Read more