• Sergey Vojtovich's avatar
    Fixed c++11 narrowing error · a0dfefb0
    Sergey Vojtovich authored
    sql/table.cc:8561:42: error: non-constant-expression cannot be narrowed
                                 from type 'uint' (aka 'unsigned int') to
                                 '__darwin_suseconds_t' (aka 'int') in
                                 initializer list [-Wc++11-narrowing]
      timeval end_time= {thd->query_start(), uint(thd->query_start_sec_part())};
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sql/table.cc:8561:42: note: insert an explicit cast to silence this issue
      timeval end_time= {thd->query_start(), uint(thd->query_start_sec_part())};
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             static_cast<__darwin_suseconds_t>( )
    a0dfefb0
table.cc 266 KB