patch-src_plugins_scratch_ScratchPlugin_c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $OpenBSD: patch-src_plugins_scratch_ScratchPlugin_c,v 1.1 2013/05/14 09:42:47 sthen Exp $
  2. Quash compiler warnings
  3. --- src/plugins/scratch/ScratchPlugin.c.orig Sun Apr 29 02:35:43 2012
  4. +++ src/plugins/scratch/ScratchPlugin.c Sun Apr 29 02:40:28 2012
  5. @@ -25,10 +25,12 @@ const char *moduleName = "ScratchPlugin 2 January 2009
  6. /*** Functions ***/
  7. static int bitmapatputHsv(unsigned int *bitmap, int i, int hue, int saturation, int brightness);
  8. +#if 0
  9. static double * checkedFloatPtrOf(int oop);
  10. static unsigned int * checkedUnsignedIntPtrOf(int oop);
  11. static int hueFromRGBminmax(int r, int g, int b, int min, int max);
  12. static int interpolateandfrac(int pix1, int pix2, int frac2);
  13. +#endif
  14. static int interpolatedFromxywidthheight(unsigned int *bitmap, int xFixed, int yFixed, int w, int h);
  15. EXPORT int primClose(void);
  16. EXPORT int primGetOption(void);
  17. @@ -62,7 +64,7 @@ EXPORT int primitiveWhirl(void);
  18. EXPORT int setInterpreter(struct VirtualMachine* anInterpreter);
  19. static int bitmapatputHsv(unsigned int *bitmap, int i, int hue, int saturation, int brightness) {
  20. - int outPix;
  21. + int outPix = 0;
  22. int v;
  23. int t;
  24. int hF;
  25. @@ -104,6 +106,7 @@ static int bitmapatputHsv(unsigned int *bitmap, int i,
  26. return 0;
  27. }
  28. +#if 0
  29. static double * checkedFloatPtrOf(int oop) {
  30. interpreterProxy->success(interpreterProxy->isWordsOrBytes(oop));
  31. if (interpreterProxy->failed()) {
  32. @@ -166,6 +169,7 @@ static int interpolateandfrac(int pix1, int pix2, int
  33. }
  34. return result;
  35. }
  36. +#endif
  37. static int interpolatedFromxywidthheight(unsigned int *bitmap, int xFixed, int yFixed, int w, int h) {
  38. int yFrac;