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 compiler warning in IRutils_test.cpp #756

Merged
merged 1 commit into from
Jun 16, 2019

Conversation

crankyoldgit
Copy link
Owner

Make the test array >= 8 entries.
To remove the following warning:

g++ -isystem ../lib/googletest/googletest/include -DUNIT_TEST -g -Wall -Wextra -pthread -std=gnu++11 -I../src -I. -c IRutils_test.cpp
In file included from IRutils_test.cpp:6:0:
IRutils_test.cpp: In member function ‘virtual void TestResultToRawArray_LargeValues_Test::TestBody()’:
IRrecv_test.h:12:25: warning: comparison is always false due to limited range of data type [-Wtype-limits]
   for (uint8_t i = 0; i < c / 8; ++i) {         \
                         ^
IRutils_test.cpp:477:3: note: in expansion of macro ‘EXPECT_STATE_EQ’
   EXPECT_STATE_EQ(test_data, result, 7);
   ^

Make the test array >= 8 entries.
To remove the following warning:
```
g++ -isystem ../lib/googletest/googletest/include -DUNIT_TEST -g -Wall -Wextra -pthread -std=gnu++11 -I../src -I. -c IRutils_test.cpp
In file included from IRutils_test.cpp:6:0:
IRutils_test.cpp: In member function ‘virtual void TestResultToRawArray_LargeValues_Test::TestBody()’:
IRrecv_test.h:12:25: warning: comparison is always false due to limited range of data type [-Wtype-limits]
   for (uint8_t i = 0; i < c / 8; ++i) {         \
                         ^
IRutils_test.cpp:477:3: note: in expansion of macro ‘EXPECT_STATE_EQ’
   EXPECT_STATE_EQ(test_data, result, 7);
   ^
```
@crankyoldgit crankyoldgit self-assigned this Jun 15, 2019
@crankyoldgit crankyoldgit merged commit 2af65a3 into master Jun 16, 2019
@crankyoldgit crankyoldgit deleted the raw_array_large_values_test branch June 16, 2019 06:43
crankyoldgit added a commit that referenced this pull request Jun 16, 2019
_v2.6.2 (20190616)_

**[Features]**
- Initial support for the ESP32 architecture & boards. (#742)
- Add changable GPIO settings to IRMQTTServer. (#730)
- IRMQTTServer: Enforce a repeat for all Coolix calls (#752)
- Basic DAIKIN 160bit send and decode. (#754)
- Add example code for a Smart(er) IR Repeater. (#740)
- Enforce Samsung A/C Quiet & Powerful mutual exclusivity.

**[Misc]**
- IRMQTTServer: Add some memory alloc safety checks. (#749)
- Move some ToString() functions to IRac.cpp (#748)
- Increase tolerance value for TCL112AC protocol. (#745)
- Fix compiler warning in IRutils_test.cpp (#756)
- Scrape Supported Protocols and generate SupportedProtocols.md (#755)
- Make supported device info more organised. (#753)
@crankyoldgit crankyoldgit mentioned this pull request Jun 16, 2019
crankyoldgit added a commit that referenced this pull request Jun 16, 2019
_v2.6.2 (20190616)_

**[Features]**
- Initial support for the ESP32 architecture & boards. (#742)
- Add changable GPIO settings to IRMQTTServer. (#730)
- IRMQTTServer: Enforce a repeat for all Coolix calls (#752)
- Basic DAIKIN 160bit send and decode. (#754)
- Add example code for a Smart(er) IR Repeater. (#740)
- Enforce Samsung A/C Quiet & Powerful mutual exclusivity.

**[Misc]**
- IRMQTTServer: Add some memory alloc safety checks. (#749)
- Move some ToString() functions to IRac.cpp (#748)
- Increase tolerance value for TCL112AC protocol. (#745)
- Fix compiler warning in IRutils_test.cpp (#756)
- Scrape Supported Protocols and generate SupportedProtocols.md (#755)
- Make supported device info more organised. (#753)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant