09-07-2012, 04:29 AM
I'm somewhat puzzled by the warning produced upon building the Squirrel library:
Can anyone shed some light onto this? The MS docs don't say much about the issue, other than "the optimization is turned off, or inline assembly jumps", neither of which is true for this file. And why would one function compile without optimizations, while all the others are optimized, because they don't emit that warning?
Code:
squirrel_3_0_1_stable\squirrel\sqlexer.cpp(290) : warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
Can anyone shed some light onto this? The MS docs don't say much about the issue, other than "the optimization is turned off, or inline assembly jumps", neither of which is true for this file. And why would one function compile without optimizations, while all the others are optimized, because they don't emit that warning?