Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Suppress a ton of compiler warnings during the build
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Jul 15, 2011
1 parent f0fc1d2 commit 147080a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
4 changes: 4 additions & 0 deletions iMonkey.xcodeproj/project.pbxproj
Expand Up @@ -1051,6 +1051,8 @@
JS_THREADSAFE,
);
GCC_THUMB_SUPPORT = NO;
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO;
GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LINKER_DISPLAYS_MANGLED_NAMES = YES;
Expand All @@ -1073,6 +1075,8 @@
JS_THREADSAFE,
);
GCC_THUMB_SUPPORT = NO;
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO;
GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LINKER_DISPLAYS_MANGLED_NAMES = YES;
Expand Down
56 changes: 56 additions & 0 deletions iMonkey.xcodeproj/xcshareddata/xcschemes/iMonkey.xcscheme
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "27167DD613C4E4D3001CC5B6"
BuildableName = "libiMonkey.a"
BlueprintName = "iMonkey"
ReferencedContainer = "container:iMonkey.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
debugDocumentVersioning = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
11 changes: 8 additions & 3 deletions iMonkey_Prefix.pch
Expand Up @@ -2,6 +2,11 @@
// Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
//

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
// prcpucfg #defines both of these symbols, which are predefined by the compiler.
// So to prevent warnings, remove the built-in definitions:
#undef _PR_PTHREADS
#undef DARWIN

#define HAVE_SOCKLEN_T

#include "prcpucfg.h"

0 comments on commit 147080a

Please sign in to comment.