Fix const qualifier warning

Also set the warning to an error in VS.
This commit is contained in:
Ari Koivula 2016-03-09 14:16:15 +02:00
parent b0c3ece31e
commit f8edf28161
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
<AdditionalIncludeDirectories>$(SolutionDir)..\..\pthreads.2\include;$(SolutionDir)..\src;$(SolutionDir)..\src\extras;$(SolutionDir)..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4244;4204;4206;4028;4152;4996;4018;4456;4389;4100;4131;4459</DisableSpecificWarnings>
<OpenMPSupport>false</OpenMPSupport>
<TreatSpecificWarningsAsErrors>4013;4029;4047;4716;4700;4020;4021;4133</TreatSpecificWarningsAsErrors>
<TreatSpecificWarningsAsErrors>4013;4029;4047;4716;4700;4020;4021;4133;4090</TreatSpecificWarningsAsErrors>
</ClCompile>
<Link>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>

View file

@ -61,7 +61,7 @@ static INLINE bool fracmv_within_tile(const encoder_state_t *state, const vector
static INLINE int get_wpp_limit(const encoder_state_t *state, const vector2d_t* orig)
{
encoder_control_t *ctrl = state->encoder_control;
const encoder_control_t *ctrl = state->encoder_control;
if (ctrl->owf && ctrl->wpp) {
// Limit motion vectors to the LCU-row below this row.
// To avoid fractional pixel interpolation depending on things outside