[Xastir-dev] Proposal to clean up some warnings

Jerry Dunmire jerry at dunmire.org
Wed Jun 9 14:41:51 EDT 2010


That's far far fewer than I'm seeing with GCC 4.4.3. I'm seeing 214
warnings, of which 124 are the 'format not a literal string' warnings.

If we don't want to change to strncpy(), Tom's suggestion to add the
"%s" format string, seems like a good one to me.

...jerry


2010/6/9 Curt, WE7U <curt.we7u at gmail.com>:
> On Wed, 9 Jun 2010, Curt, WE7U wrote:
>
>> I'm not seeing _any_ compiler warnings such as you describe when I
>> do a "make clean;make".
>
> Here's the complete set of warnings I see on a 64-bit machine:
>
> index.c: In function ‘Xastir_RTreeSearch’:
> index.c:86: warning: cast from pointer to integer of different size
> index.c: In function ‘Xastir_RTreeInsertRect2’:
> index.c:147: warning: cast to pointer from integer of different size
> index.c: In function ‘Xastir_RTreeDeleteRect2’:
> index.c:287: warning: cast to pointer from integer of different size
> index.c: In function ‘Xastir_RTreeDeleteRect’:
> index.c:336: warning: cast from pointer to integer of different size
> rect.c: In function ‘Xastir_RTreeContained’:
> rect.c:372: warning: cast from pointer to integer of different size
> rect.c:372: warning: cast from pointer to integer of different size
> draw_symbols.c: In function ‘draw_deadreckoning_features’:
> draw_symbols.c:3542: warning: cast from pointer to integer of different size
> interface.c: In function ‘channel_data’:
> interface.c:1509: warning: suggest braces around empty body in ‘do’
> statement
> interface.c:1542: warning: suggest braces around empty body in ‘do’
> statement
> interface.c: In function ‘ax25_init’:
> interface.c:4052: warning: cast from pointer to integer of different size
> interface.c: In function ‘net_connect_thread’:
> interface.c:4994: warning: suggest braces around empty body in ‘do’
> statement
> interface.c: In function ‘port_write’:
> interface.c:6731: warning: suggest braces around empty body in ‘do’
> statement
> main.c: In function ‘BuildPredefinedSARMenu_UI’:
> main.c:9769: warning: cast to pointer from integer of different size
> main.c:9781: warning: cast to pointer from integer of different size
> messages_gui.c: In function ‘Check_new_call_messages’:
> messages_gui.c:910: warning: cast from pointer to integer of different size
> messages_gui.c: In function ‘HamHUD_Msg’:
> messages_gui.c:1736: warning: cast from pointer to integer of different size
> messages_gui.c: In function ‘D700_Msg’:
> messages_gui.c:1753: warning: cast from pointer to integer of different size
> messages_gui.c: In function ‘D7_Msg’:
> messages_gui.c:1770: warning: cast from pointer to integer of different size
> messages_gui.c: In function ‘Send_message’:
> messages_gui.c:2144: warning: cast to pointer from integer of different size
> messages_gui.c:2169: warning: cast to pointer from integer of different size
> messages_gui.c:2194: warning: cast to pointer from integer of different size
> messages_gui.c:2395: warning: cast to pointer from integer of different size
> messages_gui.c: In function ‘Show_pending_messages’:
> messages_gui.c:2464: warning: cast to pointer from integer of different size
> objects.c: In function ‘Create_SAR_Object’:
> objects.c:7140: warning: cast from pointer to integer of different size
> objects.c:7160: warning: cast from pointer to integer of different size
> testdbfawk.c: In function ‘print_symtbl’:
> testdbfawk.c:82: warning: cast from pointer to integer of different size
>
> --
> Curt, WE7U.                         <http://www.eskimo.com/~archer>
>   APRS:  Where it's at!                    <http://www.xastir.org>
>  Lotto:  A tax on people who are bad at math. - unknown
> Windows:  Microsoft's tax on computer illiterates. - WE7U.
> The world DOES revolve around me:  I picked the coordinate system!"
> _______________________________________________
> Xastir-dev mailing list
> Xastir-dev at lists.xastir.org
> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir-dev
>
>



More information about the Xastir-dev mailing list