Navigation Menu

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: groonga/groonga
base: 32cb21b36975
Choose a base ref
...
head repository: groonga/groonga
compare: f9dfc311dfa6
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 11, 2013

  1. clang: suppress a warning

    Set missing default value.
    
        tsv.c:105:16: warning: variable 'encoding' is used uninitialized whenever 'if'
              condition is false [-Wsometimes-uninitialized]
            } else if (strncasecmp(encoding_name, "KOI8-R", strlen("KOI8-R")) == 0 ||
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        tsv.c:114:10: note: uninitialized use occurs here
          return encoding;
                 ^~~~~~~~
        tsv.c:105:12: note: remove the 'if' if its condition is always true
            } else if (strncasecmp(encoding_name, "KOI8-R", strlen("KOI8-R")) == 0 ||
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        tsv.c:79:3: note: variable 'encoding' is declared here
          grn_encoding encoding;
          ^
    kou committed Jun 11, 2013
    Copy the full SHA
    f9dfc31 View commit details
    Browse the repository at this point in the history