Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #149722

Re: Warnings/Debugger

From Mehdi Amini <atorrses@gmail.com>
Newsgroups comp.lang.c
Subject Re: Warnings/Debugger
Date 2020-02-04 17:09 +0330
Organization A noiseless patient Spider
Message-ID <r1bs7g$3rb$1@dont-email.me> (permalink)
References <r19d18$vv9$1@dont-email.me> <87v9onwoox.fsf@bsb.me.uk>

Show all headers | View raw


On 2/3/20 9:14 PM, Ben Bacarisse wrote:
> Mehdi Amini <atorrses@gmail.com> writes:
> 
>> Following the discussion here:
>>
>> https://discourse.gnome.org/t/transient-warning/2553
>>
>> 1.Is it my fault that I can not get the warnings work correctly ?
> 
> It's not clear what you mean.  Do you just get too many warnings using
> -Wall from the rest of the code?  If so, can you keep your changes in a
> separate source file, at least during development?
> 

If I compile my code using GTK+ (self made) static library two cases
happen:

* Without warning flags , compiles less than 10sec. Seems static library
  working correctly.

* With warning flags , compilation takes more than 2min , thousands of
  GTK+ warnings shown. I guess GTK+ compiles from source each time.

By the way , may you explain that suggestion more ?

>> 2. Is it so that I should be using a debugger , as otherwise others may
>> not help me ?
> 
> The person who suggested gdb also suggested a memory sanitiser and/or
> valgrind.  Did you try either of these?
> 
> People will naturally suggest you try what works for them, and if you
> can't or won't do that they will stop making suggestions.
> 

In the past I used Cppcheck. Once someone used Valgrind and found a rare 
bug in my code. Here in comp.lang.c . I do not object helpers using such 
tools but for my case , I believe in different concepts.

-- 
www.my-c-codes.com/

Farewell.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-03 18:38 +0330
  Re: Warnings/Debugger Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-02-03 17:44 +0000
    Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-04 17:09 +0330
      Re: Warnings/Debugger Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-02-05 01:45 +0000
        Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-06 17:03 +0330
          Re: Warnings/Debugger chad <cdalten@gmail.com> - 2020-02-06 05:51 -0800
            Re: Warnings/Debugger Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-02-06 06:57 -0800
              Re: Warnings/Debugger chad <cdalten@gmail.com> - 2020-02-06 08:15 -0800
                Re: Warnings/Debugger Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-02-06 09:01 -0800
          Re: Warnings/Debugger James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-06 21:47 -0500
            Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-07 18:11 +0330
              Re: Warnings/Debugger chad <cdalten@gmail.com> - 2020-02-07 07:35 -0800
              Re: Warnings/Debugger James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-08 00:19 -0500
                Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-10 15:49 +0330
                Re: Warnings/Debugger Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-02-10 16:26 +0000
                Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-11 17:56 +0330
                Re: Warnings/Debugger chad <cdalten@gmail.com> - 2020-02-11 06:28 -0800
                Re: Warnings/Debugger James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-11 22:55 -0500
                Re: Warnings/Debugger Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-02-12 07:05 +0000
                Re: Warnings/Debugger Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-02-18 08:36 -0800
                Re: Warnings/Debugger James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-11 08:24 -0800
                Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-12 16:11 +0330
                Re: Warnings/Debugger chad <cdalten@gmail.com> - 2020-02-12 05:39 -0800
          Re: Warnings/Debugger Ian Collins <ian-news@hotmail.com> - 2020-02-07 16:14 +1300
  Re: Warnings/Debugger James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-03 12:56 -0500
    Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-04 17:24 +0330
      Re: Warnings/Debugger James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-04 10:03 -0500
  Re: Warnings/Debugger Öö Tiib <ootiib@hot.ee> - 2020-02-03 11:41 -0800
    Re: Warnings/Debugger Mehdi Amini <atorrses@gmail.com> - 2020-02-04 17:29 +0330
      Re: Warnings/Debugger Paul <nospam@needed.invalid> - 2020-02-04 13:18 -0500
        Re: Warnings/Debugger David Brown <david.brown@hesbynett.no> - 2020-02-04 21:29 +0100
        Re: Warnings/Debugger Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-02-05 10:05 +0000
          Re: Warnings/Debugger chad <cdalten@gmail.com> - 2020-02-05 06:05 -0800
          Re: Warnings/Debugger Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-02-05 08:39 -0800
            Re: Warnings/Debugger Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-02-05 16:49 +0000
  Re: Warnings/Debugger Jens Stuckelberger <Jens_Stuckelberger@nowhere.net> - 2020-02-18 16:41 +0000

csiph-web