bug-gsl
[Top][All Lists]
Advanced

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

[Bug-gsl] [bug #24623] Discrepancy between Reference Manual A.4 and #eli


From: INVALID.NOREPLY
Subject: [Bug-gsl] [bug #24623] Discrepancy between Reference Manual A.4 and #elif
Date: Tue, 21 Oct 2008 20:39:09 +0000
User-agent: Opera/9.60 (Windows NT 5.1; U; ja) Presto/2.1.1

URL:
  <http://savannah.gnu.org/bugs/?24623>

                 Summary: Discrepancy between Reference Manual A.4 and #elif
                 Project: GNU Scientific Library
            Submitted by: reioa
            Submitted on: 2008年10月21日 20時39分08秒
                Category: None
                Severity: 3 - Normal
        Operating System: Debian GNU/Linux
                  Status: None
             Assigned to: None
             Open/Closed: Open
                 Release: 1.11
         Discussion Lock: Any

    _______________________________________________________

Details:

I tried to compile a program with CGG waring options mentioned in Reference
Manual A.4 GCC warning options for numerical programs, but GCC returned error
as shown below.

gcc -DHAVE_CONFIG_H -I. -I..    -g -O2 -ansi -pedantic -Werror -Wall -W
-Wmissing-prototypes -Wstrict-prototypes -Wtraditional -Wconversion -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs
-fshort-enums -fno-common -Dinline= -g -O4 -g -O2 -MT ****.o -MD -MP -MF
.deps/****.Tpo -c -o ****.o ****.c
In file included from /home/***/include/gsl/gsl_math.h:26,
                 from /home/***/include/gsl/gsl_fit.h:24,
                 from ****.c:5:
/home/***/include/gsl/gsl_nan.h:26:2: error: suggest not using #elif in
traditional C
/home/***/include/gsl/gsl_nan.h:36:2: error: suggest not using #elif in
traditional C

Removing -Wtraditional option, the compile was successfully compleated.

If these waring options is recomended officially, GSL itself ought not to
block use of the options, I think.

The problematic part is like this.

#ifdef aaa
bbb
#elif ccc
ddd
#else
eee
#endif

This code can be switched to a code in below.

#ifdef aaa
bbb
#else
#ifdef ccc
ddd
#else
eee
#endif
#endif

I would like to take the modification into account.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24623>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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