clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

upc-specific warnings when building clang-upc #42

Closed PHHargrove closed 10 years ago

PHHargrove commented 10 years ago

Building with CC=clang/CXX=clang++, I see the following two warnings:

/usr/home/phargrov/upcnightly/llvm-upc/src/tools/clang/lib/Frontend/CompilerInvocation.cpp:1421:22: warning: comparison of integers of different signs: 'int' and 'uint64_t' (aka 'unsigned long long') [-Wsign-compare]
  } else if (Threads > (uint64_t(1u) << Opts.UPCThreadBits)) {
             ~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/usr/home/phargrov/upcnightly/llvm-upc/src/tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp:1000:13: warning: enumeration values 'CK_UPCSharedToLocal' and 'CK_UPCBitCastZeroPhase' not handled in switch [-Wswitch]
    switch (ICE->getCastKind()) {
            ^
1 warning generated.
nenadv commented 10 years ago

Fixed by https://github.com/Intrepid/clang-upc/commit/811ff5310e1df89ad984a394132e46369db7c18c