Skip to content

Commit

Permalink
turn on warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HifiExperiments committed Oct 21, 2024
1 parent 9da839f commit c1d7315
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if(NOT DEFINED OVERTE_WARNINGS_ALLOWLIST)
endif()

if(NOT DEFINED OVERTE_WARNINGS_AS_ERRORS)
set(OVERTE_WARNINGS_AS_ERRORS false CACHE BOOL "Count warnings as errors")
set(OVERTE_WARNINGS_AS_ERRORS true CACHE BOOL "Count warnings as errors")
endif()

if(OVERTE_WARNINGS_ALLOWLIST)
Expand Down
3 changes: 2 additions & 1 deletion assignment-client/src/audio/AudioMixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@ void updateAudioZone(EntityItem* entity, std::unordered_map<QString, AudioMixer:
audioZone.listeners.push_back(listener.toString());
}

audioZone.coefficients = audioSettings.getListenerAttenuationCoefficients().toStdVector();
const auto& listenerAttenuationCoefficients = audioSettings.getListenerAttenuationCoefficients();
audioZone.coefficients = std::vector<float>(listenerAttenuationCoefficients.begin(), listenerAttenuationCoefficients.end());

/*qCDebug(audio) << "Updated audio zone:" << entity->getID().toString() << "(position:" << t.getTranslation()
<< ", dimensions:" << t.getScale() << ")";*/
Expand Down
2 changes: 1 addition & 1 deletion libraries/render-utils/src/RenderCommonTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class SetupMirrorTask {
args->_numMirrorFlips += portalExitID != Item::INVALID_ITEM_ID ? 0 : 1;

gpu::doInBatch("SetupMirrorTask::run", args->_context, [&](gpu::Batch& batch) {
bool shouldMirror = args->_numMirrorFlips % 2 == (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE);
bool shouldMirror = args->_numMirrorFlips % 2 == (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE ? 1 : 0);
batch.setContextMirrorViewCorrection(shouldMirror);
});

Expand Down
2 changes: 1 addition & 1 deletion libraries/render-utils/src/ToneMapAndResampleTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void ToneMapAndResample::run(const RenderContextPointer& renderContext, const In
batch.setViewportTransform(destViewport);
batch.setProjectionTransform(glm::mat4());
batch.resetViewTransform();
bool shouldMirror = args->_numMirrorFlips >= (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE);
bool shouldMirror = args->_numMirrorFlips >= (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE ? 1 : 0);
batch.setPipeline(shouldMirror ? _mirrorPipeline : _pipeline);

batch.setModelTransform(gpu::Framebuffer::evalSubregionTexcoordTransform(srcBufferSize, args->_viewport));
Expand Down
2 changes: 1 addition & 1 deletion libraries/render/src/render/ResampleTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void UpsampleToBlitFramebuffer::run(const RenderContextPointer& renderContext, c
batch.setViewportTransform(viewport);
batch.setProjectionTransform(glm::mat4());
batch.resetViewTransform();
bool shouldMirror = args->_numMirrorFlips >= (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE);
bool shouldMirror = args->_numMirrorFlips >= (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE ? 1 : 0);
batch.setPipeline(shouldMirror ? _mirrorPipeline : _pipeline);

batch.setModelTransform(gpu::Framebuffer::evalSubregionTexcoordTransform(bufferSize, viewport));
Expand Down

0 comments on commit c1d7315

Please sign in to comment.