Home page logo
/

wireshark logo Wireshark mailing list archives

Re: Clang build with ASAN
From: Joerg Mayer <jmayer () loplof de>
Date: Tue, 13 Aug 2013 12:56:28 +0200

Hello,

On Tue, Aug 13, 2013 at 12:29:18PM +0200, Bálint Réczey wrote:
2013/8/12 Alexis La Goutte <alexis.lagoutte () gmail com>:
Hi,

it is now possible to build wireshark with clang (CC=clang ./configure &&
make) (i fix last issue last week end).
Great news!

Hmm, that has been working on my system (opensuse 12.1, cmake) for a while now
(but with clang 3.3, not 3.4).
That's why some dissectors are in "dirty" lists.

 ciao
      Jörg

echld/child.c
echld/dispatcher.c
ui/qt/packet_list_record.cpp

[100%] Building C object echld/CMakeFiles/echld.dir/child.c.o
/home/jmayer/work/wireshark/svn/trunk/echld/child.c:187:15: error: variable length array used [-Werror,-Wvla]
        gchar err_str[len];
                     ^
1 error generated.

Building C object echld/CMakeFiles/echld.dir/dispatcher.c.o
/home/jmayer/work/wireshark/svn/trunk/echld/dispatcher.c:165:15: warning: variable
      length array used [-Wvla]
        gchar err_str[len];
                     ^
/home/jmayer/work/wireshark/svn/trunk/echld/dispatcher.c:183:15: warning: variable
      length array used [-Wvla]
        gchar err_str[len];
                     ^
2 warnings generated.

[ 70%] Building CXX object ui/qt/CMakeFiles/qtui.dir/packet_list_record.cpp.o
In file included from /home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.cpp:24:
/home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.h:46:13: warning: private field 'col_text_' is not used 
[-Wunused-private-field]
    gchar **col_text_;
            ^
/home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.h:48:12: warning: private field 'col_text_len_' is not 
used [-Wunused-private-field]
    guint *col_text_len_;
           ^
/home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.h:53:14: warning: private field 'columnized_' is not 
used [-Wunused-private-field]
    gboolean columnized_;
             ^
/home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.h:55:14: warning: private field 'colorized_' is not used 
[-Wunused-private-field]
    gboolean colorized_;
             ^
/home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.h:59:11: warning: private field 'physical_pos_' is not 
used [-Wunused-private-field]
    guint physical_pos_;
          ^
/home/jmayer/work/wireshark/svn/trunk/ui/qt/packet_list_record.h:61:10: warning: private field 'visible_pos_' is not 
used [-Wunused-private-field]
    gint visible_pos_;
         ^
6 warnings generated.

-- 
Joerg Mayer                                           <jmayer () loplof de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]