Re: ISO C forbids an empty translation unit again

2019-09-06 Thread Marco Bodrato
Ciao,

Il Lun, 2 Settembre 2019 11:48 pm, Dennis Clarke ha scritto:
> t-get_str.c +69:30: error: format specifies type 'void *' but the
> argument has type 'const char *' [-Werror,-Wformat-pedantic]
>printf ("  want %p\n", want);
>~~ ^~~~
>%s

> I know that is silly pedantic so I tossed in a (void *) cast and life
> goes onwards.

Silly, you are right. But serendipity spots a true oversight :-)

The line is inside the branch
  if (str != ret)

So, the correct line is
   printf ("  want %p\n", str);
or, to be pedantic,
   printf ("  want %p\n", (void *) str);

Corrected this too:
https://gmplib.org/repo/gmp/rev/6137ad9f35b7

Ĝis,
m

-- 
http://bodrato.it/papers/

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: ISO C forbids an empty translation unit again

2019-09-05 Thread Dennis Clarke

On 9/3/19 1:08 AM, Marco Bodrato wrote:

Ciao,

Il Lun, 2 Settembre 2019 11:48 pm, Dennis Clarke ha scritto:

This one pops up now and again if I go with LLVM/Clang on FreeBSD and
with really strict CFLAGS.  So in a few files I had to drop in a silly
typedef.


Adding silly lines in the code is not a priority for this project :-D


typedef int __gmp_dummy_typedef;

Looks good to me !



By the way, a patch was added to the main repository:

https://gmplib.org/repo/gmp/rev/04bc88ce93f9


Thing of beauty.   Thank you.
A patch may be needed on the main download site.


--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: ISO C forbids an empty translation unit again

2019-09-02 Thread Marco Bodrato
Ciao,

Il Lun, 2 Settembre 2019 11:48 pm, Dennis Clarke ha scritto:
> This one pops up now and again if I go with LLVM/Clang on FreeBSD and
> with really strict CFLAGS.  So in a few files I had to drop in a silly
> typedef.

Adding silly lines in the code is not a priority for this project :-D

By the way, a patch was added to the main repository:

https://gmplib.org/repo/gmp/rev/04bc88ce93f9

Ĝis,
m

-- 
http://bodrato.it/papers/

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs