In my applications, I add this to CMakeLists.txt
# In release mode, disable some warning messages
IF(CMAKE_BUILD_TYPE MATCHES Release)
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-tautological-compare" )
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter" )
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable" )
ENDIF()
Then I will get warnings in Debug mode but not in Release mode.
praveen
On Tue, Jun 6, 2017 at 8:07 AM, Bruno Turcksin <[email protected]>
wrote:
> Juan Carlos
>
> On Tuesday, June 6, 2017 at 5:34:09 AM UTC-4, Juan Carlos Araujo Cabarcas
> wrote:
>>
>> The warnings come from my code, which is in developing stage!
>> In the installation I had before, [-Wunused-variable],[-Wunused-
>> parameter],[-Wunused-but-set-variable] did not show up. It's a bummer
>> that changing deal.II version will make such a difference! As I am not
>> proficient in cmake, I still think it would be useful to know how to pass
>> compiler flags by modifying CMakeLists.
>>
> cmake -DCMAKE_CXX_FLAGS="my_flags" should work.
>
> Best,
>
> Bruno
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/
> forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.