icc warnings on my_bitmap

Bug #492950 reported by Brian Aker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Medium
Brian Aker
7.0
Fix Released
Medium
Brian Aker

Bug Description

From ICC

mysys/my_bitmap.cc(32): warning #191: type qualifier is meaningless on cast type
    unsigned char const mask= static_cast<unsigned char const>((~((1 << used) - 1)) & 255);
                                          ^

mysys/my_bitmap.cc(32): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    unsigned char const mask= static_cast<unsigned char const>((~((1 << used) - 1)) & 255);
                              ^

mysys/my_bitmap.cc(90): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    unsigned char bit= static_cast<unsigned char>(1 << ((bitPos) & 7));
                       ^

mysys/my_bitmap.cc(91): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    unsigned char res= static_cast<unsigned char>((*value) & bit);
                       ^

mysys/my_bitmap.cc(92): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    *value= static_cast<unsigned char>(*value | bit);
            ^

mysys/my_bitmap.cc(101): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    unsigned char bit= static_cast<unsigned char>(1 << ((bitPos) & 7));
                       ^

mysys/my_bitmap.cc(102): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    unsigned char res= static_cast<unsigned char>((*byte) & bit);
                       ^

mysys/my_bitmap.cc(103): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
libtool: compile: /opt/intel/Compiler/11.1/059/bin/intel64/icpc -gcc-name=/usr/bin/gcc-4.2 -gxx-name=/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -g -pthread -pipe -xHOST -O3 -no-prec-div -w1 -Wall -Wcheck -Wformat -Wp64 -Woverloaded-virtual -Wcast-qual -diag-disable 981 -std=gnu++98 -MT mysys/my_init.lo -MD -MP -MF mysys/.deps/my_init.Tpo -c mysys/my_init.cc -o mysys/my_init.o
    *byte= static_cast<unsigned char>(*byte & ~bit);
           ^

mysys/my_bitmap.cc(136): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
      *m++= static_cast<unsigned char>((1 << prefix_bits)-1);
            ^

mysys/my_bitmap.cc(287): remark #2259: non-pointer conversion from "int" to "unsigned char" may lose significant bits
    unsigned char use_byte= static_cast<unsigned char>(use_bit ? 0xff : 0);
                            ^

Related branches

Brian Aker (brianaker)
Changed in drizzle:
milestone: none → bell
Changed in drizzle:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Brian Aker (brianaker)
Changed in drizzle:
milestone: bell → cherry
Changed in drizzle:
milestone: 2010-04-26 → 2010-06-21
Changed in drizzle:
milestone: 2010-06-21 → 2010-08-14
Changed in drizzle:
milestone: 2010-08-16 → ongoing
Changed in drizzle:
milestone: ongoing → none
Changed in drizzle:
status: Confirmed → Fix Committed
Changed in drizzle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.