Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 17, 2012
1 parent bba4e18 commit 9117bf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/Flex.cmake
Expand Up @@ -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(
Expand All @@ -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)

Expand Down
1 change: 1 addition & 0 deletions src/core/composer/qgscomposerattributetable.cpp
Expand Up @@ -140,6 +140,7 @@ bool QgsComposerAttributeTable::getFeatureAttributes( QList<QgsAttributeMap>& at
}
catch ( QgsCsException &cse )
{
Q_UNUSED( cse );
return false;
}
}
Expand Down

0 comments on commit 9117bf1

Please sign in to comment.