Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused height variable #633

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions cmake/FindGengetopt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ macro (WRAP_GGO GGO_SRCS)

set_source_files_properties(${${GGO_SRCS}} PROPERTIES GENERATED TRUE)
if(CMAKE_COMPILER_IS_GNUCXX)
find_program(DEFAULT_GCC gcc)
exec_program(${DEFAULT_GCC} ARGS "-dumpversion" OUTPUT_VARIABLE GCCVER)
if("${GCCVER}" VERSION_GREATER "4.5.2")
set_source_files_properties(${${GGO_SRCS}} PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable")
endif()
set_source_files_properties(${${GGO_SRCS}} PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable")
endif()
if(MSVC)
# Disable double to float truncation warning as gengetopt cannot append "f"
Expand Down
3 changes: 1 addition & 2 deletions include/rtkFFTHilbertImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
* https://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -48,7 +48,6 @@ FFTHilbertImageFilter<TInputImage, TOutputImage, TFFTPrecision>::UpdateFFTProjec
m_PreviousKernelUpdateSize = s;

const int width = s[0];
const int height = s[1];

// Allocate kernel
SizeType size;
Expand Down
Loading