Skip to content
Permalink
Browse files

fix warnings

  • Loading branch information
jef-n committed Sep 17, 2012
1 parent bba4e18 commit 9117bf1b103099a3996ef7c11d6de828e71da570
Showing with 8 additions and 1 deletion.
  1. +7 −1 cmake/Flex.cmake
  2. +1 −0 src/core/composer/qgscomposerattributetable.cpp
@@ -32,7 +32,6 @@ MACRO(ADD_FLEX_FILES _sources )

SET(_out ${CMAKE_CURRENT_BINARY_DIR}/flex_${_basename}.cpp)


# -d option for flex means that it will produce output to stderr while analyzing

ADD_CUSTOM_COMMAND(
@@ -45,6 +44,13 @@ MACRO(ADD_FLEX_FILES _sources )
)

SET(${_sources} ${${_sources}} ${_out} )

# Disable warnings
IF(MSVC)
SET_SOURCE_FILES_PROPERTIES(${_out} PROPERTIES COMPILE_FLAGS /W0)
ELSE(MSVC)
SET_SOURCE_FILES_PROPERTIES(${_out} PROPERTIES COMPILE_FLAGS -w)
ENDIF(MSVC)
ENDFOREACH (_current_FILE)
ENDMACRO(ADD_FLEX_FILES)

@@ -140,6 +140,7 @@ bool QgsComposerAttributeTable::getFeatureAttributes( QList<QgsAttributeMap>& at
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
return false;
}
}

0 comments on commit 9117bf1

Please sign in to comment.
You can’t perform that action at this time.