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

Fix small issues 5 #249

Merged
merged 13 commits into from
Jun 21, 2020
Merged

Fix small issues 5 #249

merged 13 commits into from
Jun 21, 2020

Commits on Mar 9, 2020

  1. Configuration menu
    Copy the full SHA
    67f18d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9868050 View commit details
    Browse the repository at this point in the history
  3. Use strtoul instead of atoi

    mikkoi committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    1add857 View commit details
    Browse the repository at this point in the history
  4. Change signature of internal test func

    function int get_next_failure_line_num(FILE * file)
    calls long strtol(..) and returns its return value.
    
    Signed-off-by: Mikko Koivunalho <mikko.koivunalho@combient.com>
    mikkoi committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    57fc493 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    70d28f9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c176543 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b7d5231 View commit details
    Browse the repository at this point in the history
  8. Add macro CK_ATTRIBUTE_FORMAT

    Using GNU C's format attribute: https://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC84
    
    Fixing following warnings:
    /src/check.c:383:9: warning: function ‘_ck_assert_failed’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
    /src/check_error.c:47:5: warning: function ‘eprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
    /src/check_str.c:91:9: warning: function ‘ck_strdup_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
    
    Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
    mikkoi committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    5e2b32f View commit details
    Browse the repository at this point in the history
  9. Correct function type of snprintf

    man snprintf:
    
    Upon successful return, these functions return the number of characters printed (excluding the null byte used to end output to strings).
    
    The functions snprintf() and vsnprintf() do not write more than size bytes (including the terminating null byte ('\0')).  If the output  was
    truncated  due  to this limit, then the return value is the number of characters (excluding the terminating null byte) which would have been
    written to the final string if enough space had been available.  Thus, a return value of size or more means that the output  was  truncated.
    (See also below under NOTES.)
    
    If an output error is encountered, a negative value is returned.
    
    Signed-off-by: Mikko Koivunalho <mikko.koivunalho@iki.fi>
    mikkoi committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    0015a1b View commit details
    Browse the repository at this point in the history
  10. Document changes to NEWS

    Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
    mikkoi committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    b6f8806 View commit details
    Browse the repository at this point in the history
  11. Add to TODO: does compiler support __attribute__

    Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
    mikkoi committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    28fd45a View commit details
    Browse the repository at this point in the history

Commits on May 26, 2020

  1. Configuration menu
    Copy the full SHA
    ea74c22 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2020

  1. Configuration menu
    Copy the full SHA
    05dc641 View commit details
    Browse the repository at this point in the history