Home | History | Annotate | Download | only in Xcode
      1 //
      2 // libusb Xcode configuration file
      3 // Copyright  2012 Pete Batard <pete (a] akeo.ie>
      4 // For more information, please visit: <http://libusb.info>
      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 
     20 // libusb does not follow C99 strict aliasing rules, so disable it.
     21 GCC_STRICT_ALIASING = NO
     22 
     23 // Use C99 dialect.
     24 GCC_C_LANGUAGE_STANDARD = c99
     25 
     26 // Compiler warnings.
     27 GCC_WARN_64_TO_32_BIT_CONVERSION = YES
     28 GCC_WARN_ABOUT_RETURN_TYPE = YES
     29 GCC_WARN_UNINITIALIZED_AUTOS = YES
     30 GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES
     31 GCC_WARN_SHADOW = YES
     32 GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
     33 GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
     34 GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
     35 GCC_WARN_ABOUT_MISSING_NEWLINE = YES
     36 GCC_WARN_UNKNOWN_PRAGMAS = YES
     37 GCC_WARN_UNUSED_FUNCTION = YES
     38 GCC_WARN_UNUSED_LABEL = YES
     39 GCC_WARN_UNUSED_VARIABLE = YES
     40 CLANG_WARN_EMPTY_BODY = YES
     41 CLANG_WARN_CONSTANT_CONVERSION = YES
     42 CLANG_WARN_ENUM_CONVERSION = YES
     43 CLANG_WARN_INT_CONVERSION = YES
     44 CLANG_WARN_DOCUMENTATION_COMMENTS = YES
     45 CLANG_WARN_BOOL_CONVERSION = YES
     46 
     47 // Static analyzer warnings.
     48 CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES
     49 CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES
     50