google-code-export / gpick

Automatically exported from code.google.com/p/gpick
2 stars 0 forks source link

Errors when compiled with clang #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am seeing these errors and warnings:

source/dynv/DynvVarDynv.cpp:73:15: error: reference to 'set' is ambiguous
        handler->set=set;
/usr/include/c++/v1/__tree:36:33: note: candidate found by name lookup is 
'std::__1::set'
    class _LIBCPP_TYPE_VIS_ONLY set;

source/GenerateScheme.cpp:652:14: warning: comparison of unsigned expression < 
0 is always false [-Wtautological-compare]
        if (color_n < 0 || color_n > 6) return -1;
            ~~~~~~~ ^ ~
source/GenerateScheme.cpp:928:12: warning: comparison of unsigned expression >= 
0 is always true [-Wtautological-compare]
        if (index >= 0 && index < generate_scheme_get_n_scheme_types())
            ~~~~~ ^  ~
source/uiApp.cpp:185:15: warning: comparison of unsigned expression >= 0 is 
always true [-Wtautological-compare]
        if (page_num >= 0 && page_num <= args->color_source_index.size() && args->color_source_index[page_num]){
            ~~~~~~~~ ^  ~
source/uiApp.cpp:195:89: warning: implicit conversion of NULL constant to 
'GQuark' (aka 'unsigned int') [-Wnull-conversion]
        g_signal_handlers_disconnect_matched(G_OBJECT(args->notebook), G_SIGNAL_MATCH_FUNC, 0, NULL, NULL, (void*)notebook_switch_cb, 0...
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                   ^~~~
                                                                                               0                                               
source/uiApp.cpp:781:52: warning: cast to 'void *' from smaller integer type 
'uint32_t' (aka 'unsigned int') [-Wint-to-void-pointer-cast]
                        g_object_set_data_full(G_OBJECT(item), "index", (void*)j, (GDestroyNotify)NULL);

clang-3.4.1

Original issue reported on code.google.com by yuriv...@gmail.com on 24 Nov 2014 at 10:42