Skip to content

Instantly share code, notes, and snippets.

@neonux
Created September 27, 2011 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neonux/1245992 to your computer and use it in GitHub Desktop.
Save neonux/1245992 to your computer and use it in GitHub Desktop.
build error fx-team tip
c++ -o nsTimerImpl.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /home/cedric/tmp/stack/mozilla-all/config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -D_IMPL_NS_COM -I/home/cedric/tmp/stack/mozilla-all/xpcom/threads/../components -I/home/cedric/tmp/stack/mozilla-all/xpcom/threads -I. -I../../dist/include -I../../dist/include/nsprpub -I/home/cedric/tmp/stack/mozilla-all/obj-x86_64-unknown-linux-gnu-DEBUG-firefox/dist/include/nspr -I/home/cedric/tmp/stack/mozilla-all/obj-x86_64-unknown-linux-gnu-DEBUG-firefox/dist/include/nss -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections -fdata-sections -pipe -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/nsTimerImpl.pp /home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.cpp
In file included from /home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.cpp:41:0:
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.h: In member function ‘bool nsTimerImpl::IsRepeating() const’:
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.h:118:59: warning: comparison between ‘enum nsITimer::<anonymous>’ and ‘enum nsITimer::<anonymous>’ [-Wenum-compare]
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.h:119:66: warning: comparison between ‘enum nsITimer::<anonymous>’ and ‘enum nsITimer::<anonymous>’ [-Wenum-compare]
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.h:120:68: warning: comparison between ‘enum nsITimer::<anonymous>’ and ‘enum nsITimer::<anonymous>’ [-Wenum-compare]
In file included from /home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.h:50:0,
from /home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.cpp:41:
../../dist/include/nsCOMPtr.h: At global scope:
../../dist/include/nsCOMPtr.h: In instantiation of ‘nsCOMPtr_base::nsDerivedSafe<nsTimerEvent>’:
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.cpp:540:10: instantiated from here
../../dist/include/nsCOMPtr.h:436:7: error: deleted function ‘virtual nsCOMPtr_base::nsDerivedSafe<nsTimerEvent>::~nsDerivedSafe()’
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.cpp:491:3: error: overriding non-deleted function ‘virtual nsTimerEvent::~nsTimerEvent()’
../../dist/include/nsCOMPtr.h:436:7: error: ‘virtual nsCOMPtr_base::nsDerivedSafe<nsTimerEvent>::~nsDerivedSafe()’ is implicitly deleted because the default definition would be ill-formed:
/home/cedric/tmp/stack/mozilla-all/xpcom/threads/nsTimerImpl.cpp:491:3: error: ‘virtual nsTimerEvent::~nsTimerEvent()’ is private
../../dist/include/nsCOMPtr.h:436:7: error: within this context
make[1]: *** [nsTimerImpl.o] Error 1
make[1]: Leaving directory `/home/cedric/tmp/stack/mozilla-all/obj-x86_64-unknown-linux-gnu-DEBUG-firefox/xpcom/threads'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment