[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] ec68d5: Suppress a compiler warning (undeclared function)

GitHub noreply at github.com
Fri Jul 8 20:55:55 UTC 2016


  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: ec68d51e0415a4b7d21743e9d240ce737b959b42
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ec68d51e0415a4b7d21743e9d240ce737b959b42
  Author: Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-08 (Fri, 08 Jul 2016)

  Changed paths:
    M platforms/Cross/plugins/JPEGReadWriter2Plugin/sqJPEGReadWriter2Plugin.c

  Log Message:
  -----------
  Suppress a compiler warning (undeclared function)

This is benign since int abs(int) matches implicit definition.
But the less time we spend analyzing things like this, the better:
../../platforms/Cross/plugins/JPEGReadWriter2Plugin/sqJPEGReadWriter2Plugin.c:70:31: warning: implicitly declaring library funct
ion 'abs' with type 'int (int)' [-Wimplicit-function-declaration]
          pcinfo->input_components = (abs(nativeDepth) != 8 ? 3 : 1);
                                      ^
../../platforms/Cross/plugins/JPEGReadWriter2Plugin/sqJPEGReadWriter2Plugin.c:70:31: note: include the header <stdlib.h> or expl
icitly provide a declaration for 'abs'




More information about the Vm-dev mailing list