Changeset 81624 in webkit
- Timestamp:
- Mar 21, 2011 5:16:41 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r81621 r81624 1 2011-03-21 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Solve the Assertions.cpp / -Wno-missing-format-attribute mystery 6 https://bugs.webkit.org/show_bug.cgi?id=56780 7 8 The reason we couldn't resolve this warning in the GYP build was that 9 the normal build disables this warning specifically for this file. 10 This patch takes the same approach as the previous patch to 11 WebCoreObjCExtras.mm in that it uses a pragma to suppress the warning 12 (rather than a build system configuration). 13 14 * JavaScriptCore.xcodeproj/project.pbxproj: 15 - Remove the special-case for this file. 16 * gyp/JavaScriptCore.gyp: 17 - Remove the work-around for this issue. 18 * wtf/Assertions.cpp: 19 - Add a pragma disabling this warning for this file. 20 1 21 2011-03-21 Adam Barth <abarth@webkit.org> 2 22 -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r81567 r81624 211 211 65DFC93308EA173A00F7300B /* HashTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65DFC92D08EA173A00F7300B /* HashTable.cpp */; }; 212 212 65E1A3DF122B894500B26097 /* NonCopyingSort.h in Headers */ = {isa = PBXBuildFile; fileRef = 65E1A2F4122B880D00B26097 /* NonCopyingSort.h */; settings = {ATTRIBUTES = (Private, ); }; }; 213 65FDE49C0BDD1D4A00E80111 /* Assertions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65E217B808E7EECC0023E5F6 /* Assertions.cpp */; settings = {COMPILER_FLAGS = "-Wno-missing-format-attribute"; };};213 65FDE49C0BDD1D4A00E80111 /* Assertions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65E217B808E7EECC0023E5F6 /* Assertions.cpp */; }; 214 214 76FB9F0F12E851860051A2EB /* SHA1.h in Headers */ = {isa = PBXBuildFile; fileRef = 76FB9F0E12E851860051A2EB /* SHA1.h */; settings = {ATTRIBUTES = (Private, ); }; }; 215 215 76FB9F1112E851960051A2EB /* SHA1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 76FB9F1012E851960051A2EB /* SHA1.cpp */; }; -
trunk/Source/JavaScriptCore/gyp/JavaScriptCore.gyp
r81621 r81624 139 139 'GCC_PREFIX_HEADER': '<(project_dir)/JavaScriptCorePrefix.h', 140 140 'INFOPLIST_FILE': '<(project_dir)/Info.plist', 141 # This setting mirrors the setting in Base.xcconfig, with142 # one difference noted below.143 'WARNING_CFLAGS_BASE': [144 '-Wall',145 '-Wextra',146 '-Wcast-qual',147 '-Wchar-subscripts',148 '-Wextra-tokens',149 '-Wformat=2',150 '-Winit-self',151 # FIXME: For some reason, -Wmissing-format-attribute causes a152 # build error in Assertions.cpp in the GYP build but not in the153 # non-GYP build.154 # '-Wmissing-format-attribute',155 '-Wmissing-noreturn',156 '-Wpacked',157 '-Wpointer-arith',158 '-Wredundant-decls',159 '-Wundef',160 '-Wwrite-strings',161 ],162 141 }, 163 142 }], -
trunk/Source/JavaScriptCore/wtf/Assertions.cpp
r79461 r81624 25 25 */ 26 26 27 // The vprintf_stderr_common function triggers this error in the Mac build. 28 // Feel free to remove this pragma if this file builds on Mac. 29 // According to http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas 30 // we need to place this directive before any data or functions are defined. 31 #pragma GCC diagnostic ignored "-Wmissing-format-attribute" 32 27 33 #include "config.h" 28 34 #include "Assertions.h"
Note: See TracChangeset
for help on using the changeset viewer.