Closed Bug 912560 Opened 8 years ago Closed 8 years ago
many "warning: '__STDC
_FORMAT _MACROS' macro redefined"
Compiling what looks like the libs subtier in media/webrtc, I'm getting tons of these warnings printed: 13:23.36 ccsip_task.o 13:23.36 In file included from <built-in>:162: 13:23.43 In file included from <command line>:49: 13:23.43 ../../../../mozilla-config.h:211:9: warning: '__STDC_FORMAT_MACROS' macro redefined 13:23.43 #define __STDC_FORMAT_MACROS 13:23.43 ^ 13:23.43 <command line>:40:9: note: previous definition is here 13:23.43 #define __STDC_FORMAT_MACROS 1 13:23.43 ^ 13:23.43 1 warning generated. This is with clang 3.3
On a B2G build, I'm getting this on basically every file (not just media/webrtc files) widget/gonk/libui/Unicode.h sets it to 1 and causes the warnings gfx/angle/src/compiler/preprocessor/Tokenizer.cpp also sets it to 1
Oops, that's STDC_LIMIT_MACROS with gonk.
see bug 911359
I also see this when compiling WebRTC on Mac.
OS: Linux → All
(In reply to Randell Jesup [:jesup] from comment #2) > Oops, that's STDC_LIMIT_MACROS with gonk. And that was fixed with bug 911359 and I thought would fix this, but I too confused macros. Patch soon.
Assignee: nobody → hub
Status: NEW → ASSIGNED
Proposed fix. You might need to do |touch configure| to force configure to be re-run. Only testing on a FxOS build for now.
Hmm, why isn't mozilla-config.h included first for WebRTC files?
I think the defines on the command line take precedence.
but said defines are BEFORE the -include ../../../../../../mozilla-config.h in the command line.
Attachment #808642 - Flags: review?(ted) → review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.