Add a workaround for a GCC bug that generates spurious warnings for PSTR()

git-svn-id: https://arducopter.googlecode.com/svn/trunk@900 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-11-23 09:07:47 +00:00
parent 5560f4fcf9
commit 906239160d
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@
#include "include/menu.h"
// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
#undef PSTR
#define PSTR(s) (__extension__({static prog_char __c[] = (s); &__c[0];}))
// statics
char Menu::_inbuf[MENU_COMMANDLINE_MAX];
Menu::arg Menu::_argv[MENU_ARGS_MAX + 1];