Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx:20:
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:205:18: error: variable 'replacement' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
- else if (res.isNullPointer())
- ^~~~~~~~~~~~~~~~~~~
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:218:83: note: uninitialized use occurs here
- << res.getAsString(compiler.getASTContext(), t) << t << suggestion << replacement
- ^~~~~~~~~~~
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:205:14: note: remove the 'if' if its condition is always true
- else if (res.isNullPointer())
- ^~~~~~~~~~~~~~~~~~~~~~~~
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:194:25: note: initialize the variable 'replacement' to silence this warning
- bool replacement;
- ^
- = false
- 1 error generated.
- make[1]: *** [/home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile-clang.mk:215: /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/sharedvisitor.o] Error 1
- make[1]: Leaving directory '/home/vmiklos/git/libreoffice/master-clang'
- make: *** [/home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile.mk:25: compilerplugins] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement