Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Suppress a ton of compiler warnings during the build

  • Loading branch information...
commit 147080ab05331d443bab1cfb08e5b28ed6e3932a 1 parent f0fc1d2
Jens Alfke snej authored
4 iMonkey.xcodeproj/project.pbxproj
@@ -1051,6 +1051,8 @@
1051 1051 JS_THREADSAFE,
1052 1052 );
1053 1053 GCC_THUMB_SUPPORT = NO;
  1054 + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO;
  1055 + GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO;
1054 1056 GCC_WARN_ABOUT_RETURN_TYPE = YES;
1055 1057 GCC_WARN_UNUSED_VARIABLE = YES;
1056 1058 LINKER_DISPLAYS_MANGLED_NAMES = YES;
@@ -1073,6 +1075,8 @@
1073 1075 JS_THREADSAFE,
1074 1076 );
1075 1077 GCC_THUMB_SUPPORT = NO;
  1078 + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO;
  1079 + GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO;
1076 1080 GCC_WARN_ABOUT_RETURN_TYPE = YES;
1077 1081 GCC_WARN_UNUSED_VARIABLE = YES;
1078 1082 LINKER_DISPLAYS_MANGLED_NAMES = YES;
56 iMonkey.xcodeproj/xcshareddata/xcschemes/iMonkey.xcscheme
... ... @@ -0,0 +1,56 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Scheme
  3 + version = "1.3">
  4 + <BuildAction
  5 + parallelizeBuildables = "YES"
  6 + buildImplicitDependencies = "YES">
  7 + <BuildActionEntries>
  8 + <BuildActionEntry
  9 + buildForTesting = "YES"
  10 + buildForRunning = "YES"
  11 + buildForProfiling = "YES"
  12 + buildForArchiving = "YES"
  13 + buildForAnalyzing = "YES">
  14 + <BuildableReference
  15 + BuildableIdentifier = "primary"
  16 + BlueprintIdentifier = "27167DD613C4E4D3001CC5B6"
  17 + BuildableName = "libiMonkey.a"
  18 + BlueprintName = "iMonkey"
  19 + ReferencedContainer = "container:iMonkey.xcodeproj">
  20 + </BuildableReference>
  21 + </BuildActionEntry>
  22 + </BuildActionEntries>
  23 + </BuildAction>
  24 + <TestAction
  25 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
  26 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
  27 + shouldUseLaunchSchemeArgsEnv = "YES"
  28 + buildConfiguration = "Debug">
  29 + <Testables>
  30 + </Testables>
  31 + </TestAction>
  32 + <LaunchAction
  33 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
  34 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
  35 + launchStyle = "0"
  36 + useCustomWorkingDirectory = "NO"
  37 + buildConfiguration = "Debug"
  38 + debugDocumentVersioning = "YES">
  39 + <AdditionalOptions>
  40 + </AdditionalOptions>
  41 + </LaunchAction>
  42 + <ProfileAction
  43 + shouldUseLaunchSchemeArgsEnv = "YES"
  44 + savedToolIdentifier = ""
  45 + useCustomWorkingDirectory = "NO"
  46 + buildConfiguration = "Release"
  47 + debugDocumentVersioning = "YES">
  48 + </ProfileAction>
  49 + <AnalyzeAction
  50 + buildConfiguration = "Debug">
  51 + </AnalyzeAction>
  52 + <ArchiveAction
  53 + buildConfiguration = "Release"
  54 + revealArchiveInOrganizer = "YES">
  55 + </ArchiveAction>
  56 +</Scheme>
11 iMonkey_Prefix.pch
@@ -2,6 +2,11 @@
2 2 // Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
3 3 //
4 4
5   -#ifdef __OBJC__
6   - #import <Foundation/Foundation.h>
7   -#endif
  5 +// prcpucfg #defines both of these symbols, which are predefined by the compiler.
  6 +// So to prevent warnings, remove the built-in definitions:
  7 +#undef _PR_PTHREADS
  8 +#undef DARWIN
  9 +
  10 +#define HAVE_SOCKLEN_T
  11 +
  12 +#include "prcpucfg.h"

0 comments on commit 147080a

Please sign in to comment.
Something went wrong with that request. Please try again.