bug-groff
[Top][All Lists]
Advanced

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

[bug #59276] [PATCH] #include "config.h" before <stdio.h>


From: Dave
Subject: [bug #59276] [PATCH] #include "config.h" before <stdio.h>
Date: Sun, 18 Oct 2020 18:02:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #2, bug #59276 (project groff):

FWIW, I hit this bug with a much newer version of gcc (9.3.0), so it's not
just crusty old versions that were failing.  My output is different but it
appears to be the same bug.  The update specified in comment #1 solved it.


  CXX      src/libs/libgroff/libgroff_a-cset.o
In file included from src/libs/libgroff/assert.cpp:19:
./lib/stdio.h:851:1: error: expected ',' or '...' before 'fp'
  851 | _GL_FUNCDECL_RPL (fprintf, int,
      | ^~~~~~~~~~~~~~~~
  CXX      src/libs/libgroff/libgroff_a-curtime.o
src/libs/libgroff/assert.cpp: In function 'void assertion_failed(int, const
char*, const char*, const char*)':
src/libs/libgroff/assert.cpp:29:41: error: too many arguments to function 'int
rpl_fprintf(FILE*)'
   29 |     fprintf(stderr, "%s: ", program_name);
      |                                         ^
In file included from src/libs/libgroff/assert.cpp:19:
./lib/stdio.h:851:1: note: declared here
  851 | _GL_FUNCDECL_RPL (fprintf, int,
      | ^~~~~~~~~~~~~~~~
src/libs/libgroff/assert.cpp:31:25: error: too many arguments to function 'int
rpl_fprintf(FILE*)'
   31 |    lineno, function, msg);
      |                         ^
In file included from src/libs/libgroff/assert.cpp:19:
./lib/stdio.h:851:1: note: declared here
  851 | _GL_FUNCDECL_RPL (fprintf, int,
      | ^~~~~~~~~~~~~~~~
make[1]: *** [Makefile:7043: src/libs/libgroff/libgroff_a-assert.o] Error 1


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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