bugGPSD - Bugs: bug #55291, osX unhappy with gpsrinex.c

 
 

bug #55291: osX unhappy with gpsrinex.c

Submitted by:  Gary E. Miller <garyemiller>
Submitted on:  Wed 26 Dec 2018 10:44:57 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 28 Dec 2018 03:38:28 AM UTC, comment #1:

Fixed all but this one:

gpsrinex.c:142:22: warning: suggest braces around initialization of subobject

Gary E. Miller <garyemiller>
Project Administrator
Wed 26 Dec 2018 10:44:57 PM UTC, original submission:

The complaints:



gpsrinex.c:142:22: warning: suggest braces around initialization of subobject [-
Wmissing-braces]
} obs_cnt[MAXCNT] = {0};
^
{}
gpsrinex.c:209:19: warning: result of comparison of constant 99999 with expressi
on of type 'obs_codes' is always false [-Wtautological-constant-out-of-range-compare]
if (99999 < obs_cnt[i].obs_cnts[obs_code]) {
~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpsrinex.c:560:11: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Wimplicit-function-declaration]
(void)snprintf(buf, sizeof(buf), "%14.3f%c%1c", val, lli_c, snr_c);
^
gpsrinex.c:560:11: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
gpsrinex.c:833:21: warning: implicitly declaring library function 'strdup' with type 'char *(const char *)' [-Wimplicit-function-declaration]
fname = strdup(optarg);
^
gpsrinex.c:833:21: note: include the header <string.h> or explicitly provide a declaration for 'strdup'
4 warnings generated.

Gary E. Miller <garyemiller>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by garyemiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.4