Meituan-Dianping / Meituan-Dianping/SQLAdvisor
编译时出现converting to non-pointer Warning
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 5.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
/usr/local/sqlparser/include/sql/item_timefunc.h: In member function ‘virtual longlong Item_time_func::val_int()’:
/usr/local/sqlparser/include/sql/item_timefunc.h:533:12: warning: converting to non-pointer type ‘longlong {aka long long int}’ from NULL [-Wconversion-null]
return NULL;
版本:
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
glibc:2.17
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at sql/item_timefunc.h:533 in Item_time_func::val_int() and reproduce the warning with the reported GCC 4.8.5 environment. Check the surrounding return behavior, then verify compilation completes without the -Wconversion-null warning while preserving the function's behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100