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

No return in a function expecting one... Triggers undefined behavior with GCC14 #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BinauralBeats.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AP{//allpass

return out;
};
REALTYPE set(REALTYPE a_){
void set(REALTYPE a_){
a=a_*a_;
};
private:
Expand Down
8 changes: 4 additions & 4 deletions XMLwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int xml_k=0;
char tabs[STACKSIZE+2];

const char *XMLwrapper_whitespace_callback(mxml_node_t *node,int where){
const char *name=node->value.element.name;
const char *name =mxmlGetElement(node);

if ((where==MXML_WS_BEFORE_OPEN)&&(!strcmp(name,"?xml"))) return(NULL);
if ((where==MXML_WS_BEFORE_CLOSE)&&(!strcmp(name,"string"))) return(NULL);
Expand Down Expand Up @@ -407,10 +407,10 @@ void XMLwrapper::getparstr(const char *name,char *par,int maxstrlen){
node=mxmlFindElement(peek(),peek(),"string","name",name,MXML_DESCEND_FIRST);

if (node==NULL) return;
if (node->child==NULL) return;
if (node->child->type!=MXML_OPAQUE) return;
if (mxmlGetFirstChild(node) == NULL) return;
if (mxmlGetType(mxmlGetFirstChild(node)) != MXML_OPAQUE) return;

snprintf(par,maxstrlen,"%s",node->child->value.element.name);
snprintf(par,maxstrlen,"%s",mxmlGetText(mxmlGetFirstChild(node), NULL));

};

Expand Down