[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: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes |
Date: |
Fri, 23 Nov 2018 08:03:52 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36 |
Update of bug #55046 (project octave):
Status: In Progress => Need Info
_______________________________________________________
Follow-up Comment #16:
I started to work on this one, but got stuck with the macro expansion (see
file #45515).
The Problem is in "libinterp/corefcn/error.h". This version without the macro
works:
__attribute__ ((__format__(__printf__, 1, 2)))
OCTAVE_NORETURN OCTINTERP_API extern
void error (const char *fmt, ...);
While this does not:
OCTAVE_FORMAT_ATTRIBUTE (__printf__, 1, 2)
OCTAVE_NORETURN OCTINTERP_API extern
void error (const char *fmt, ...);
with the error:
libinterp/corefcn/error.h:64:25: error: expected constructor, destructor, or
type conversion before ‘(’ token
OCTAVE_FORMAT_ATTRIBUTE (__printf__, 1, 2)
^
I tried to use another working macro like "OCTAVE_DEPRECATED" declared in the
very same file, but no luck either... any clue what I am doing wrong?! :(
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55046>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, (continued)
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, Kai Torben Ohlhus, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, Kai Torben Ohlhus, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, John W. Eaton, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, Rik, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, Rik, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev, Rik, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Rik, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Kai Torben Ohlhus, 2018/11/21
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Kai Torben Ohlhus, 2018/11/23
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Kai Torben Ohlhus, 2018/11/23
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes,
Kai Torben Ohlhus <=
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Kai Torben Ohlhus, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Rik, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Rik, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Markus Mützel, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Rik, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Kai Torben Ohlhus, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Markus Mützel, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Markus Mützel, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Rik, 2018/11/29
- [Octave-bug-tracker] [bug #55046] Add static compile-time checking of printf functions using compiler attributes, Markus Mützel, 2018/11/30