Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few compiler warnings to get rid of #128

Closed
remkos opened this issue Oct 18, 2018 · 2 comments
Closed

A few compiler warnings to get rid of #128

remkos opened this issue Oct 18, 2018 · 2 comments
Assignees

Comments

@remkos
Copy link
Contributor

remkos commented Oct 18, 2018

gmt/trunk/src/gmt_init.c: In function 'gmt_auto_offsets_for_colorbar':
gmt/trunk/src/gmt_init.c:15170:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
  fgets (file, PATH_MAX, fp); fclose (fp); /* Recycle file to hold the -B arguments */
        ^
In file included from /usr/include/string.h:640:0,
                 from gmt/trunk/src/gmt_dev.h:108,
                 from gmt/trunk/src/movie.c:35:
In function 'strncat',
    inlined from 'GMT_movie' at gmt/trunk/src/movie.c:1375:12:
/usr/include/x86_64-linux-gnu/bits/string3.h:150:3: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default]
   return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
   ^
gmt/trunk/src/psconvert.c: In function 'pipe_HR_BB':
gmt/trunk/src/psconvert.c:1034:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (H->fd[1], PS->data, PS->n_bytes);
         ^
gmt/trunk/src/psconvert.c: In function 'pipe_ghost':
gmt/trunk/src/psconvert.c:1227:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
    write (H->fd[1], PS->data, PS->n_bytes);
          ^
@remkos
Copy link
Contributor Author

remkos commented Oct 18, 2018

Addressed by pull request #129

@PaulWessel
Copy link
Member

Closing this issue since addressed by PR.

obaney pushed a commit to obaney/gmt that referenced this issue Aug 18, 2021
Basic wrapper that only defines a single alias for the -G option
(download the file).

Fixes GenericMappingTools#92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants