Skip to content
Snippets Groups Projects
  1. Mar 11, 2017
    • Dan Church's avatar
      Fix compiler warnings · 4ebb6ec7
      Dan Church authored
      Fix the following warnings, seen when compiling with GCC 5.4:
      
          CXX OLEDDisplay.o
          ./OLEDDisplay.cpp: In member function 'void OLEDDisplay::drawStringInternal(int16_t, int16_t, char*, uint16_t, uint16_t)':
          ./OLEDDisplay.cpp:381:10: error: enumeration value 'TEXT_ALIGN_LEFT' not handled in switch [-Werror=switch]
             switch (textAlignment) {
      	      ^
          ./OLEDDisplay.cpp: In member function 'void OLEDDisplay::drawInternal(int16_t, int16_t, int16_t, int16_t, const char*, uint16_t, uint16_t)':
          ./OLEDDisplay.cpp:722:13: warning: unused variable 'yScreenPos' [-Wunused-variable]
      	 int16_t yScreenPos = yMove + yOffset;
      		 ^
          ./OLEDDisplay.cpp: In member function 'void OLEDDisplay::drawXbm(int16_t, int16_t, int16_t, int16_t, const char*)':
          ./OLEDDisplay.cpp:361:19: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      	     data >>= 1; // Move a bit
      		       ^
          cc1plus: some warnings being treated as errors
      Unverified
      4ebb6ec7
  2. Jan 02, 2017
  3. Aug 27, 2016
  4. Jul 15, 2016
  5. May 30, 2016
  6. May 29, 2016
  7. May 26, 2016
  8. May 22, 2016
  9. May 21, 2016
  10. May 20, 2016
  11. Apr 05, 2016
  12. Jan 10, 2016
  13. Jan 09, 2016
  14. Dec 15, 2015
  15. Dec 14, 2015
  16. Dec 12, 2015
  17. Dec 05, 2015
  18. Nov 14, 2015
  19. Nov 12, 2015
Loading