Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 1 | // |
hjelmn@cs.unm.edu | 1eff220 | 2014-01-08 23:50:34 +0000 | [diff] [blame] | 2 | // libusb Xcode configuration file |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 3 | // Copyright © 2012 Pete Batard <pete@akeo.ie> |
hjelmn@cs.unm.edu | 1eff220 | 2014-01-08 23:50:34 +0000 | [diff] [blame] | 4 | // For more information, please visit: <http://libusb.info> |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 5 | // |
| 6 | // This library is free software; you can redistribute it and/or |
| 7 | // modify it under the terms of the GNU Lesser General Public |
| 8 | // License as published by the Free Software Foundation; either |
| 9 | // version 2.1 of the License, or (at your option) any later version. |
| 10 | // |
| 11 | // This library is distributed in the hope that it will be useful, |
| 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | // Lesser General Public License for more details. |
| 15 | // |
| 16 | // You should have received a copy of the GNU Lesser General Public |
| 17 | // License along with this library; if not, write to the Free Software |
| 18 | // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | |
Chris Dickens | 9a1bc8c | 2020-03-30 12:28:11 -0700 | [diff] [blame] | 20 | // Use GNU11 dialect. |
| 21 | GCC_C_LANGUAGE_STANDARD = gnu11 |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 22 | |
Sean McBride | 0aeb46c | 2019-02-07 15:11:56 -0500 | [diff] [blame] | 23 | // Don't search user paths with <> style #includes. |
| 24 | ALWAYS_SEARCH_USER_PATHS = NO |
| 25 | |
Chris Dickens | 09d0312 | 2020-03-30 16:53:43 -0700 | [diff] [blame] | 26 | // Enable weak references for Objective-C |
| 27 | CLANG_ENABLE_OBJC_WEAK = YES |
| 28 | |
| 29 | // Compiler errors. |
| 30 | GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES |
| 31 | |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 32 | // Compiler warnings. |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 33 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 34 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 35 | GCC_WARN_ABOUT_MISSING_NEWLINE = YES |
Chris Dickens | 09d0312 | 2020-03-30 16:53:43 -0700 | [diff] [blame] | 36 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES |
| 37 | GCC_WARN_ABOUT_RETURN_TYPE = YES |
| 38 | GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES |
| 39 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES |
| 40 | GCC_WARN_SHADOW = YES |
| 41 | GCC_WARN_UNINITIALIZED_AUTOS = YES |
Sean McBride | 8f13c72 | 2012-10-31 13:18:32 -0400 | [diff] [blame] | 42 | GCC_WARN_UNKNOWN_PRAGMAS = YES |
| 43 | GCC_WARN_UNUSED_FUNCTION = YES |
| 44 | GCC_WARN_UNUSED_LABEL = YES |
Sean McBride | 8a05a3f | 2018-12-15 17:08:34 -0500 | [diff] [blame] | 45 | GCC_WARN_UNUSED_PARAMETER = YES |
Chris Dickens | 09d0312 | 2020-03-30 16:53:43 -0700 | [diff] [blame] | 46 | GCC_WARN_UNUSED_VARIABLE = YES |
Sean McBride | 8a05a3f | 2018-12-15 17:08:34 -0500 | [diff] [blame] | 47 | CLANG_WARN_ASSIGN_ENUM = YES |
Chris Dickens | 09d0312 | 2020-03-30 16:53:43 -0700 | [diff] [blame] | 48 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES |
| 49 | CLANG_WARN_BOOL_CONVERSION = YES |
Sean McBride | 8a05a3f | 2018-12-15 17:08:34 -0500 | [diff] [blame] | 50 | CLANG_WARN_COMMA = YES |
Chris Dickens | 09d0312 | 2020-03-30 16:53:43 -0700 | [diff] [blame] | 51 | CLANG_WARN_CONSTANT_CONVERSION = YES |
| 52 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES |
| 53 | CLANG_WARN_EMPTY_BODY = YES |
| 54 | CLANG_WARN_ENUM_CONVERSION = YES |
| 55 | CLANG_WARN_FLOAT_CONVERSION = YES |
| 56 | CLANG_WARN_INFINITE_RECURSION = YES |
| 57 | CLANG_WARN_INT_CONVERSION = YES |
| 58 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES |
| 59 | CLANG_WARN_STRICT_PROTOTYPES = YES |
Sean McBride | 8a05a3f | 2018-12-15 17:08:34 -0500 | [diff] [blame] | 60 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES |
Sean McBride | 388a8f7 | 2014-03-21 14:00:04 -0400 | [diff] [blame] | 61 | |
| 62 | // Static analyzer warnings. |
Chris Dickens | 09d0312 | 2020-03-30 16:53:43 -0700 | [diff] [blame] | 63 | CLANG_ANALYZER_NONNULL = YES |
Sean McBride | 388a8f7 | 2014-03-21 14:00:04 -0400 | [diff] [blame] | 64 | CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES |
| 65 | CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES |