Only use explicit inlining - otherwise Visual Studio 2010 will inline SDL_zero(info) in SDL_vsnprintf() into a memset() call when compiling the Release x64 configuration.
authorSam Lantinga <slouken@libsdl.org>
Sun, 14 Jun 2015 18:57:05 -0700
changeset 973832c934d0cb29
parent 9737 7bca2c67af53
child 9739 306e09b65660
Only use explicit inlining - otherwise Visual Studio 2010 will inline SDL_zero(info) in SDL_vsnprintf() into a memset() call when compiling the Release x64 configuration.
VisualC/SDL/SDL.vcxproj
VisualC/SDL/SDL_VS2008.vcproj
     1.1 --- a/VisualC/SDL/SDL.vcxproj	Sun Jun 14 18:37:43 2015 -0700
     1.2 +++ b/VisualC/SDL/SDL.vcxproj	Sun Jun 14 18:57:05 2015 -0700
     1.3 @@ -102,6 +102,7 @@
     1.4        <WarningLevel>Level3</WarningLevel>
     1.5        <DebugInformationFormat>OldStyle</DebugInformationFormat>
     1.6        <OmitDefaultLibName>true</OmitDefaultLibName>
     1.7 +      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
     1.8      </ClCompile>
     1.9      <ResourceCompile>
    1.10        <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    1.11 @@ -132,6 +133,7 @@
    1.12        <WarningLevel>Level3</WarningLevel>
    1.13        <DebugInformationFormat>OldStyle</DebugInformationFormat>
    1.14        <OmitDefaultLibName>true</OmitDefaultLibName>
    1.15 +      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
    1.16      </ClCompile>
    1.17      <ResourceCompile>
    1.18        <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    1.19 @@ -165,6 +167,7 @@
    1.20        <WarningLevel>Level3</WarningLevel>
    1.21        <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
    1.22        <OmitDefaultLibName>true</OmitDefaultLibName>
    1.23 +      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
    1.24      </ClCompile>
    1.25      <ResourceCompile>
    1.26        <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    1.27 @@ -196,6 +199,7 @@
    1.28        <WarningLevel>Level3</WarningLevel>
    1.29        <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
    1.30        <OmitDefaultLibName>true</OmitDefaultLibName>
    1.31 +      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
    1.32      </ClCompile>
    1.33      <ResourceCompile>
    1.34        <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     2.1 --- a/VisualC/SDL/SDL_VS2008.vcproj	Sun Jun 14 18:37:43 2015 -0700
     2.2 +++ b/VisualC/SDL/SDL_VS2008.vcproj	Sun Jun 14 18:57:05 2015 -0700
     2.3 @@ -51,6 +51,7 @@
     2.4  			<Tool
     2.5  				Name="VCCLCompilerTool"
     2.6  				Optimization="0"
     2.7 +				InlineFunctionExpansion="1"
     2.8  				AdditionalIncludeDirectories="$(SolutionDir)/../include"
     2.9  				AdditionalUsingDirectories=""
    2.10  				PreprocessorDefinitions="_DEBUG;_WINDOWS"
    2.11 @@ -133,6 +134,7 @@
    2.12  			<Tool
    2.13  				Name="VCCLCompilerTool"
    2.14  				Optimization="0"
    2.15 +				InlineFunctionExpansion="1"
    2.16  				AdditionalIncludeDirectories="$(SolutionDir)/../include"
    2.17  				AdditionalUsingDirectories=""
    2.18  				PreprocessorDefinitions="_DEBUG;_WINDOWS"
    2.19 @@ -214,6 +216,7 @@
    2.20  			/>
    2.21  			<Tool
    2.22  				Name="VCCLCompilerTool"
    2.23 +				InlineFunctionExpansion="1"
    2.24  				AdditionalIncludeDirectories="$(SolutionDir)/../include"
    2.25  				AdditionalUsingDirectories=""
    2.26  				PreprocessorDefinitions="NDEBUG;_WINDOWS"
    2.27 @@ -296,6 +299,7 @@
    2.28  			/>
    2.29  			<Tool
    2.30  				Name="VCCLCompilerTool"
    2.31 +				InlineFunctionExpansion="1"
    2.32  				AdditionalIncludeDirectories="$(SolutionDir)/../include"
    2.33  				AdditionalUsingDirectories=""
    2.34  				PreprocessorDefinitions="NDEBUG;_WINDOWS"