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

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

[Octave-bug-tracker] [bug #57816] macro redefinition warning when instal


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #57816] macro redefinition warning when installing communications 1.2.2 on 4.4.1
Date: Fri, 14 Feb 2020 23:29:50 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0

Follow-up Comment #1, bug #57816 (project octave):

Here's the warning:


>> pkg install -forge communications
gf.cc:47:9: warning: 'OCTAVE__ERR_SQUARE_MATRIX_REQUIRED' macro redefined
[-Wmacro-redefined]
#define OCTAVE__ERR_SQUARE_MATRIX_REQUIRED(a) err_square_matrix_required(a,
"")
        ^
gf.cc:43:9: note: previous definition is here
#define OCTAVE__ERR_SQUARE_MATRIX_REQUIRED(a) gripe_square_matrix_required(a)
        ^
1 warning generated.


Here's the code:


#ifdef HAVE_OCTAVE_GRIPES_H
#include <octave/gripes.h>
#define OCTAVE__ERR_SQUARE_MATRIX_REQUIRED(a) gripe_square_matrix_required(a)
#endif
#ifdef HAVE_OCTAVE_ERRWARN_H
#include <octave/errwarn.h>
#define OCTAVE__ERR_SQUARE_MATRIX_REQUIRED(a) err_square_matrix_required(a,
"")
#endif


Maybe HAVE_OCTAVE_GRIPES_H and HAVE_OCTAVE_ERRWARN_H are not mutually
exclusive, and that should be an "#else ifdef" or something there?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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