Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Fix int-conversion warning #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

LegNeato
Copy link

Fixing this error:

    unruu.c:111:20: warning: incompatible integer to pointer conversion passing
          'char' to parameter of type 'const char *'; take the address with &
          [-Wint-conversion]
            if(strncmp(RUU_FILES[c], ",", 1) == 0)

Fixing this error:

unruu.c:111:29: warning: adding 'int' to a string does not append to the string
      [-Wstring-plus-int]
        if(strncmp(RUU_FILES+c, ",", 1) == 0)
                   ~~~~~~~~~^~
unruu.c:111:29: note: use array indexing to silence this warning
        if(strncmp(RUU_FILES+c, ",", 1) == 0)
                            ^
                   &        [ ]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant