Quell warning from MinGW on setting CM108 pttbitnum

MinGW was issuing the following warning:

  CC     rig.lo
rig.c: In function 'rig_init':
rig.c:330:36: warning: assignment makes integer from pointer without a cast [enabled by default]
  rs->rigport.parm.cm108.ptt_bitnum = DEFAULT_CM108_PTT_BITNUM;
                                    ^

The constant DEFAULT_CM108_PTT_BITNUM was being defined as a string on
non-linux platforms.  Now defined to an integer on these platforms.  The
actual value may need to be corrected at some point in the future when
CM108 support is completed for those platforms.
Hamlib-3.0
Nate Bargmann 2014-02-16 07:25:59 -06:00
rodzic ea49154813
commit 0fa8a5656c
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -118,9 +118,11 @@ const char hamlib_copyright[231] = /* hamlib 1.2 ABI specifies 231 bytes */
#endif
#if defined(WIN32) && !defined(__CYGWIN__)
#define DEFAULT_CM108_PTT_BITNUM "fixme"
/* FIXME: Determine correct GPIO bit number for W32 using MinGW. */
#define DEFAULT_CM108_PTT_BITNUM 2
#elif BSD
#define DEFAULT_CM108_PTT_BITNUM "fixme"
/* FIXME: Determine correct GPIO bit number for *BSD. */
#define DEFAULT_CM108_PTT_BITNUM 2
#else
#define DEFAULT_CM108_PTT_BITNUM 2
#endif