Skip to content

remove_warning in db.c - #2209

Merged
antirez merged 1 commit into
redis:unstablefrom
charsyam:feature/remove_warning
Dec 12, 2014
Merged

antirez merged 1 commit into
redis:unstablefrom
charsyam:feature/remove_warning

Conversation

@charsyam

Copy link
Copy Markdown
Contributor

just remove some compile warning in CentOS 5.x(gcc version 4.1.2 20080704)

before

db.c: In function ‘scanGenericCommand’:
db.c:419: warning: ‘patlen’ may be used uninitialized in this function
db.c:418: warning: ‘pat’ may be used uninitialized in this function

antirez added a commit that referenced this pull request Dec 12, 2014
@antirez
antirez merged commit 67e8061 into redis:unstable Dec 12, 2014
@antirez

antirez commented Dec 12, 2014

Copy link
Copy Markdown
Contributor

Thanks. No warning with more recent GCC versions but still no harm with the initializations.

@charsyam
charsyam deleted the feature/remove_warning branch February 10, 2015 16:09
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