Closed Bug 1087098 Opened 10 years ago Closed 10 years ago

nsMsgMdnGenerator.cpp:1096:12: error: case value not in enumerated type 'nsresult' (aka 'tag_nsresult')

Categories

(SeaMonkey :: Build Config, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ewong, Unassigned)

References

Details

(Whiteboard: [Fixed by Bug 1087092])

Getting this OSX64 nightly bustage: ../../../../../../mailnews/extensions/mdn/src/nsMsgMdnGenerator.cpp:1096:12: error: case value not in enumerated type 'nsresult' (aka 'tag_nsresult') [-Werror,-Wswitch] case NS_ERROR_SMTP_PASSWORD_UNDEFINED: ^ ../../../../dist/include/nsComposeStrings.h:52:53: note: expanded from macro 'NS_ERROR_SMTP_PASSWORD_UNDEFINED' #define NS_ERROR_SMTP_PASSWORD_UNDEFINED NS_MSG_GENERATE_FAILURE(12584) ^ ../../../../dist/include/msgCore.h:63:40: note: expanded from macro 'NS_MSG_GENERATE_FAILURE' #define NS_MSG_GENERATE_FAILURE(value) \ ^ ../../../../dist/include/nsError.h:215:3: note: expanded from macro '\ NS_ERROR_GENERATE_FAILURE' NS_ERROR_GENERATE(NS_ERROR_SEVERITY_ERROR, module, code) ^ ../../../../dist/include/nsError.h:207:3: note: expanded from macro 'NS_ERROR_GENERATE' (nsresult)(((uint32_t)(sev) << 31) | \ ^ 1 warning and 1 error generated. make[5]: *** [nsMsgMdnGenerator.o] Error 1 make[4]: *** [mailnews/extensions/mdn/src/target] Error 2 make[4]: *** Waiting for unfinished jobs.... /usr/local/bin/ccache /builds/slave/c-cen-t-osx64-ntly/build/clang/bin/clang++ -arch i386 -o nsMsgFilter.o -c -fvisibility=hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"Darwin\" -DOSARCH=Darwin -DNO_NSPR_10_SUPPORT -I/builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src -I. -I../../../../dist/include -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nspr -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nss -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MP -MF .deps/nsMsgFilter.o.pp -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=switch -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fno-omit-frame-pointer /builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src/nsMsgFilter.cpp nsMsgFilterList.cpp /usr/local/bin/ccache /builds/slave/c-cen-t-osx64-ntly/build/clang/bin/clang++ -arch i386 -o nsMsgFilterList.o -c -fvisibility=hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"Darwin\" -DOSARCH=Darwin -DNO_NSPR_10_SUPPORT -I/builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src -I. -I../../../../dist/include -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nspr -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nss -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MP -MF .deps/nsMsgFilterList.o.pp -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=switch -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fno-omit-frame-pointer /builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src/nsMsgFilterList.cpp nsMsgFilterService.cpp /usr/local/bin/ccache /builds/slave/c-cen-t-osx64-ntly/build/clang/bin/clang++ -arch i386 -o nsMsgFilterService.o -c -fvisibility=hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"Darwin\" -DOSARCH=Darwin -DNO_NSPR_10_SUPPORT -I/builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src -I. -I../../../../dist/include -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nspr -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nss -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MP -MF .deps/nsMsgFilterService.o.pp -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=switch -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fno-omit-frame-pointer /builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src/nsMsgFilterService.cpp nsMsgImapSearch.cpp /usr/local/bin/ccache /builds/slave/c-cen-t-osx64-ntly/build/clang/bin/clang++ -arch i386 -o nsMsgImapSearch.o -c -fvisibility=hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"Darwin\" -DOSARCH=Darwin -DNO_NSPR_10_SUPPORT -I/builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src -I. -I../../../../dist/include -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nspr -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nss -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MP -MF .deps/nsMsgImapSearch.o.pp -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=switch -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fno-omit-frame-pointer /builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src/nsMsgImapSearch.cpp nsMsgLocalSearch.cpp /usr/local/bin/ccache /builds/slave/c-cen-t-osx64-ntly/build/clang/bin/clang++ -arch i386 -o nsMsgLocalSearch.o -c -fvisibility=hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"Darwin\" -DOSARCH=Darwin -DNO_NSPR_10_SUPPORT -I/builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src -I. -I../../../../dist/include -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nspr -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nss -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MP -MF .deps/nsMsgLocalSearch.o.pp -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=switch -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fno-omit-frame-pointer /builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src/nsMsgLocalSearch.cpp nsMsgSearchAdapter.cpp /usr/local/bin/ccache /builds/slave/c-cen-t-osx64-ntly/build/clang/bin/clang++ -arch i386 -o nsMsgSearchAdapter.o -c -fvisibility=hidden -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"Darwin\" -DOSARCH=Darwin -DNO_NSPR_10_SUPPORT -I/builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src -I. -I../../../../dist/include -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nspr -I/builds/slave/c-cen-t-osx64-ntly/build/objdir/i386/dist/include/nss -fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MP -MF .deps/nsMsgSearchAdapter.o.pp -Qunused-arguments -Qunused-arguments -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=switch -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -gdwarf-2 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNO_X11 -pipe -DNDEBUG -DTRIMMED -gdwarf-2 -O3 -fno-omit-frame-pointer /builds/slave/c-cen-t-osx64-ntly/build/mailnews/base/search/src/nsMsgSearchAdapter.cpp nsMsgSearchNews.cpp ../../../../../../mailnews/base/search/src/nsMsgLocalSearch.cpp:279:14: error: case value not in enumerated type 'nsresult' (aka 'tag_nsresult') [-Werror,-Wswitch] case NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE: ^ ../../../../dist/include/msgCore.h:104:49: note: expanded from macro 'NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE' #define NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE NS_MSG_GENERATE_FAILURE(5) ^ ../../../../dist/include/msgCore.h:63:40: note: expanded from macro 'NS_MSG_GENERATE_FAILURE' #define NS_MSG_GENERATE_FAILURE(value) \ ^ ../../../../dist/include/nsError.h:215:3: note: expanded from macro '\ NS_ERROR_GENERATE_FAILURE' NS_ERROR_GENERATE(NS_ERROR_SEVERITY_ERROR, module, code) ^ ../../../../dist/include/nsError.h:207:3: note: expanded from macro 'NS_ERROR_GENERATE' (nsresult)(((uint32_t)(sev) << 31) | \ ^ ../../../../../../mailnews/base/search/src/nsMsgLocalSearch.cpp:278:14: error: case value not in enumerated type 'nsresult' (aka 'tag_nsresult') [-Werror,-Wswitch] case NS_MSG_ERROR_FOLDER_SUMMARY_MISSING: ^ ../../../../dist/include/msgCore.h:105:45: note: expanded from macro 'NS_MSG_ERROR_FOLDER_SUMMARY_MISSING' #define NS_MSG_ERROR_FOLDER_SUMMARY_MISSING NS_MSG_GENERATE_FAILURE(6) ^ ../../../../dist/include/msgCore.h:63:40: note: expanded from macro 'NS_MSG_GENERATE_FAILURE' #define NS_MSG_GENERATE_FAILURE(value) \ ^ ../../../../dist/include/nsError.h:215:3: note: expanded from macro '\ NS_ERROR_GENERATE_FAILURE' NS_ERROR_GENERATE(NS_ERROR_SEVERITY_ERROR, module, code) ^ ../../../../dist/include/nsError.h:207:3: note: expanded from macro 'NS_ERROR_GENERATE' (nsresult)(((uint32_t)(sev) << 31) | \ ^ 2 errors generated. make[5]: *** [nsMsgLocalSearch.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [mailnews/base/search/src/target] Error 2 make[3]: *** [compile] Error 2 make[2]: *** [default] Error 2 make[1]: *** [build] Error 2 make: *** [build] Error 2
Fixed in Bug 1086705?
Flags: needinfo?(ewong)
Fixed in Bug 1086705
Status: NEW → RESOLVED
Closed: 10 years ago
Depends on: 1086705
Flags: needinfo?(ewong)
Resolution: --- → FIXED
Whiteboard: [Fixed by Bug 1087092]
Blocks: 1081010
You need to log in before you can comment on or make changes to this bug.