octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55046] Add static compile-time checking of pr


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes
Date: Fri, 30 Nov 2018 14:09:05 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0

Update of bug #55046 (project octave):

        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #26:

The attached patch is a proof of concept that could be used in format strings
for formatting octave_idx_type.

It looks a bit verbose. But if I understand correctly, the current syntax
isn't strictly correct either. We could be displaying wrong values in the
string if the value of the octave_idx_type is larger than INT_MAX.

And it avoids the compiler warnings. :-)

Any thoughts?

(file #45561)
    _______________________________________________________

Additional Item Attachment:

File name: bug55046_format_octave_idx_type.patch Size:1 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55046>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]