Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. In file included from /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx:20:
  2. /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]
  3. else if (res.isNullPointer())
  4. ^~~~~~~~~~~~~~~~~~~
  5. /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:218:83: note: uninitialized use occurs here
  6. << res.getAsString(compiler.getASTContext(), t) << t << suggestion << replacement
  7. ^~~~~~~~~~~
  8. /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:205:14: note: remove the 'if' if its condition is always true
  9. else if (res.isNullPointer())
  10. ^~~~~~~~~~~~~~~~~~~~~~~~
  11. /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/consttobool.cxx:194:25: note: initialize the variable 'replacement' to silence this warning
  12. bool replacement;
  13. ^
  14. = false
  15. 1 error generated.
  16. 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
  17. make[1]: Leaving directory '/home/vmiklos/git/libreoffice/master-clang'
  18. make: *** [/home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile.mk:25: compilerplugins] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement