File: TestUnusedParam.cmake

package info (click to toggle)
s3d 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,708 kB
  • sloc: ansic: 23,609; python: 488; perl: 98; makefile: 31; sh: 29
file content (6 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2007-2015  Sven Eckelmann <sven@narfation.org>

include(CheckCSourceCompiles)
check_c_source_compiles("int main(int argc __attribute__((unused)), char *argv[] __attribute__((unused))) { return 0; }" UNUSEDPARAM_ATTRIBUTE)
check_c_source_compiles("int main(int, char *[]) { return 0; }" UNUSEDPARAM_OMIT)