#204 fix compilation error with MSVC7

closed-accepted
nobody
None
5
2005-10-06
2005-10-06
Amitha Perera
No

A recent change to pbm.trm causes a compilation error
with MSVC7 (and I think with other strict ANSI C
compilers). Re-ordering the declarations to come first
fixes the problem. Diff output below.

RCS file: /cvsroot/gnuplot/gnuplot/term/pbm.trm,v
retrieving revision 1.21
diff -u -r1.21 pbm.trm
--- pbm.trm 5 Oct 2005 06:27:27 -0000 1.21
+++ pbm.trm 6 Oct 2005 16:44:13 -0000
@@ -120,11 +120,11 @@
TERM_PUBLIC void
PBM_options()
{
- pbm_font = 1;
- pbm_mode = 0;
int xpixels = PBM_XMAX;
int ypixels = PBM_YMAX;
struct value a;
+ pbm_font = 1;
+ pbm_mode = 0;

term_options[0] = NUL;

Discussion

  • Amitha Perera
    Amitha Perera
    2005-10-06

    • summary: fix compilation error with --> fix compilation error with MSVC7
     
  • Ethan Merritt
    Ethan Merritt
    2005-10-06

    Logged In: YES
    user_id=235620

    My fault.
    Fixed in cvs.
    Thanks.

     
  • Ethan Merritt
    Ethan Merritt
    2005-10-06

    • status: open --> closed-accepted