Skip to content
Snippets Groups Projects
Commit 572737bf authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Refs #2953. Minor fix to switch from a keyword logical operation to the symbol...

Refs #2953. Minor fix to switch from a keyword logical operation to the symbol as the keywords are not supported on visual studio.
parent 5ab349c9
No related branches found
No related tags found
No related merge requests found
# ###############################################################################
# Specialized setup for GNU gcc compilers. # Specialized setup for GNU gcc compilers.
# ###############################################################################
# The settings and definitions here will apply to all projects. Specific # The settings and definitions here will apply to all projects. Specific
# project settings should be included in the relevant CMakeLists.txt file # project settings should be included in the relevant CMakeLists.txt file
# for that project. # for that project.
# Global warning flags. # Global warning flags.
set( GNUFLAGS "-Wall -Wextra -Wconversion -Winit-self -Wpointer-arith -Wcast-qual -Wcast-align -fno-common" ) set( GNUFLAGS "-Wall -Wextra -Wconversion -Winit-self -Wpointer-arith -Wcast-qual -Wcast-align -fno-common" )
# Disable some warnings about deprecated headers and type conversions that # Disable some warnings about deprecated headers and type conversions that
# we can't do anything about # we can't do anything about
# -Wno-deprecated: Do not warn about use of deprecated headers. # -Wno-deprecated: Do not warn about use of deprecated headers.
# -Wno-write-strings: Do not warn about deprecated conversions of char*->const char* # -Wno-write-strings: Do not warn about deprecated conversions of char*->const char*
set( GNUFLAGS "${GNUFLAGS} -Wno-deprecated -Wno-write-strings") set( GNUFLAGS "${GNUFLAGS} -Wno-deprecated -Wno-write-strings")
# Disable calling logical operators by name as they are not available on other platforms
set ( GNUFLAGS "${GNUFLAGS} -fno-operator-names" )
# Set the options fo gcc and g++ # Set the options fo gcc and g++
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GNUFLAGS}" ) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GNUFLAGS}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GNUFLAGS}" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GNUFLAGS}" )
......
...@@ -130,7 +130,7 @@ namespace DataHandling ...@@ -130,7 +130,7 @@ namespace DataHandling
// Find the selection, if any // Find the selection, if any
bool selected = true; bool selected = true;
if (doMask) if (doMask)
selected = not maskWS->getInstrument()->getDetector(detectorID)->isMasked(); selected = !maskWS->getInstrument()->getDetector(detectorID)->isMasked();
//if(group > 0) //if(group > 0)
fout << std::fixed << std::setw(9) << number << fout << std::fixed << std::setw(9) << number <<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment