Doing android builds I get tons and tons of these warnings so if my build eventually fails I have to spend a while trying to find the actual error message amongst all this output. the warning is for `operator new`, `operator new[]`, and `operator delete`. ``` 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/mozalloc.h:134:21: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete] 1:52.60 MOZALLOC_EXPORT_NEW MOZ_ALWAYS_INLINE_EVEN_DEBUG void* operator new( 1:52.60 ^ 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Attributes.h:27:71: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG' 1:52.60 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline 1:52.60 ^ 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/UnifiedProtocols7.cpp:2: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/PBrowser.cpp:7: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/GfxMessageUtils.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/FilterSupport.h:11: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/RefPtr.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/AlreadyAddRefed.h:12: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Assertions.h:23: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nsTraceRefcnt.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nscore.h:20: 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/mozalloc.h:139:21: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete] 1:52.60 MOZALLOC_EXPORT_NEW MOZ_ALWAYS_INLINE_EVEN_DEBUG void* operator new[]( 1:52.60 ^ 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Attributes.h:27:71: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG' 1:52.60 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline 1:52.60 ^ 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/UnifiedProtocols7.cpp:2: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/PBrowser.cpp:7: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/GfxMessageUtils.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/FilterSupport.h:11: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/RefPtr.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/AlreadyAddRefed.h:12: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Assertions.h:23: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nsTraceRefcnt.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nscore.h:20: ```
Bug 1547038 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Doing android builds I get tons and tons of these warnings so if my build eventually fails I have to spend a while trying to find the actual error message amongst all this output. the warning is for `operator new`, `operator new[]`, `operator delete` and `operator delete[]`. ``` 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/mozalloc.h:134:21: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete] 1:52.60 MOZALLOC_EXPORT_NEW MOZ_ALWAYS_INLINE_EVEN_DEBUG void* operator new( 1:52.60 ^ 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Attributes.h:27:71: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG' 1:52.60 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline 1:52.60 ^ 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/UnifiedProtocols7.cpp:2: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/PBrowser.cpp:7: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/GfxMessageUtils.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/FilterSupport.h:11: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/RefPtr.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/AlreadyAddRefed.h:12: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Assertions.h:23: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nsTraceRefcnt.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nscore.h:20: 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/mozalloc.h:139:21: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete] 1:52.60 MOZALLOC_EXPORT_NEW MOZ_ALWAYS_INLINE_EVEN_DEBUG void* operator new[]( 1:52.60 ^ 1:52.60 /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Attributes.h:27:71: note: expanded from macro 'MOZ_ALWAYS_INLINE_EVEN_DEBUG' 1:52.60 # define MOZ_ALWAYS_INLINE_EVEN_DEBUG __attribute__((always_inline)) inline 1:52.60 ^ 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/UnifiedProtocols7.cpp:2: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/ipc/ipdl/PBrowser.cpp:7: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/GfxMessageUtils.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/FilterSupport.h:11: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/RefPtr.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/AlreadyAddRefed.h:12: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/mozilla/Assertions.h:23: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nsTraceRefcnt.h:10: 1:52.60 In file included from /home/kats/zspace/gecko-mobile/obj-android-x86-debug/dist/include/nscore.h:20: ```