No changes
Fork of nRF51822 by
source/supress-warnings.cmake@435:e351a16db43d, 2015-09-25 (annotated)
- Committer:
- rgrover1
- Date:
- Fri Sep 25 15:26:58 2015 +0100
- Revision:
- 435:e351a16db43d
- Child:
- 538:37205f256159
Synchronized with git rev 94e699bb
Author: Rohit Grover
supress warnings for unused paramters and missing initializers for the Nordic code.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rgrover1 | 435:e351a16db43d | 1 | # Copyright 2015 ARM Limited |
rgrover1 | 435:e351a16db43d | 2 | # |
rgrover1 | 435:e351a16db43d | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
rgrover1 | 435:e351a16db43d | 4 | # you may not use this file except in compliance with the License. |
rgrover1 | 435:e351a16db43d | 5 | # You may obtain a copy of the License at |
rgrover1 | 435:e351a16db43d | 6 | # |
rgrover1 | 435:e351a16db43d | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
rgrover1 | 435:e351a16db43d | 8 | # |
rgrover1 | 435:e351a16db43d | 9 | # Unless required by applicable law or agreed to in writing, software |
rgrover1 | 435:e351a16db43d | 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
rgrover1 | 435:e351a16db43d | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
rgrover1 | 435:e351a16db43d | 12 | # See the License for the specific language governing permissions and |
rgrover1 | 435:e351a16db43d | 13 | # limitations under the License. |
rgrover1 | 435:e351a16db43d | 14 | |
rgrover1 | 435:e351a16db43d | 15 | message("suppressing warnings from ble-nrf51822") |
rgrover1 | 435:e351a16db43d | 16 | |
rgrover1 | 435:e351a16db43d | 17 | if(CMAKE_C_COMPILER_ID STREQUAL "GNU") |
rgrover1 | 435:e351a16db43d | 18 | set_target_properties(ble-nrf51822 |
rgrover1 | 435:e351a16db43d | 19 | PROPERTIES COMPILE_FLAGS "-Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers" |
rgrover1 | 435:e351a16db43d | 20 | ) |
rgrover1 | 435:e351a16db43d | 21 | endif() |