Skip to content

Conversation

@pboettch
Copy link
Contributor

@pboettch pboettch commented Aug 8, 2018

GCC 8.2 warns:

csv.h:1099:22: warning: unnecessary parentheses in declaration of ‘row’ [-Wparentheses]

This commit fixes it.

GCC 8.2 warns:
  csv.h:1099:22: warning: unnecessary parentheses in declaration of ‘row’ [-Wparentheses]

This commit fixes it.
This small DRY change also fixes a GCC 8 warning:

  csv.h:78:48: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]

GCC is unable to determine that error::max_file_name_length is the
file_name - using sizeof() helps here.
@pboettch
Copy link
Contributor Author

I added a second, unrelated commit which silences another warning.

@ben-strasser ben-strasser merged commit dd2db82 into ben-strasser:master Aug 19, 2018
@ben-strasser
Copy link
Owner

Thanks for the pull request. Merged.

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

Successfully merging this pull request may close these issues.

2 participants