Re: GNUstep core release

2015-05-02 Thread Fred Kiefer
Looks like Richard already fixed the first two issues you reported. The third 
one is rather in you system include files, nothing we can do about these.
It would be great to hear whether there are similar issues in gui or back.

Thank you very much,
Fred

On the road

Am 02.05.2015 um 15:06 schrieb Barnaby Jones :

> Not a regression but I get a lot of no-brainer warnings during compilation of 
> the base package.
> 
> For example this will create an error during runtime:
> 
> NSCalendarDate.m:1778:7: warning: using integer absolute value function 'abs' 
> when argument is of floating point type [-Wabsolute-value]
>  a = abs(d - (_seconds_since_ref + offset(_time_zone, self)));
>  ^
> NSCalendarDate.m:1778:7: note: use function 'fabs' instead
>  a = abs(d - (_seconds_since_ref + offset(_time_zone, self)));
>  ^~~
>  fabs
> 
> abs will treat the result as int and the result will be defective.
> 
> Another example is:
> 
> /usr/GNUstep/Local/Library/Headers/objc/runtime.h:195:13: note: expanded from 
> macro 'NO'
> #   define NO ((BOOL)0)
> 
> 
> AGSOutput.m:2412:14: warning: expression which evaluates to zero treated as a 
> null pointer constant of type 'NSString *' [-Wnon-literal-null-conversion]
>  return NO;
> 
> Not a problem during runtime but still an ugly warning.
> 
> Finally I get this warning with the clang 3.7 compiler:
> 
> In file included from /usr/include/string.h:25:
> /usr/include/features.h:148:3: warning: "_BSD_SOURCE and _SVID_SOURCE are 
> deprecated, use _DEFAULT_SOURCE" [-W#warnings]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
> 
> this could be handled with __clang_version__
> 
> ___
> Gnustep-dev mailing list
> Gnustep-dev@gnu.org
> https://lists.gnu.org/mailman/listinfo/gnustep-dev

___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: GNUstep core release

2015-05-02 Thread Barnaby Jones
Not a regression but I get a lot of no-brainer warnings during 
compilation of the base package.


For example this will create an error during runtime:

NSCalendarDate.m:1778:7: warning: using integer absolute value function 
'abs' when argument is of floating point type [-Wabsolute-value]

  a = abs(d - (_seconds_since_ref + offset(_time_zone, self)));
  ^
NSCalendarDate.m:1778:7: note: use function 'fabs' instead
  a = abs(d - (_seconds_since_ref + offset(_time_zone, self)));
  ^~~
  fabs

abs will treat the result as int and the result will be defective.

Another example is:

/usr/GNUstep/Local/Library/Headers/objc/runtime.h:195:13: note: expanded 
from macro 'NO'

#   define NO ((BOOL)0)


AGSOutput.m:2412:14: warning: expression which evaluates to zero treated 
as a null pointer constant of type 'NSString *' 
[-Wnon-literal-null-conversion]

  return NO;

Not a problem during runtime but still an ugly warning.

Finally I get this warning with the clang 3.7 compiler:

In file included from /usr/include/string.h:25:
/usr/include/features.h:148:3: warning: "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-W#warnings]

# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

this could be handled with __clang_version__

___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev